qt - "You are creating QApplication before calling UIApplicationMain" error on iOS -


when create qtwidgets application, select iphonesimulator-clang qt5.3, , run app in debug mode on ios simulator error below. not adding code; running qt creator template code.

"error: creating qapplication before calling uiapplicationmain. if writing native ios application, , want use qt parts of application, place create qapplication within 'applicationdidfinishlaunching' inside uiapplication delegate.”

i have qt5.3.1 (installed using online installer) , xcode 5.1.1.

running provided calculator example on ios simulator works fine without error.

just in case solution decided disappear elsewhere: fix change signature of main function.

#if defined(q_os_ios) extern "c" int qtmn(int argc, char **argv) #else int main(int argc, char **argv) #endif {   ... } 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -