I’m trying to do some C++ / QML development and failing to get the debugging runs going. The app, after installed by the sdk does ‘work’. It will make an intro sound and the first QML page is displayed. Running from the SDK, for instance with an RPM deploy:
wl_display@1: error 1: invalid arguments for qt_extended_surface@25.set_content_orientation_mask
[C] unknown:0 - The Wayland connection experienced a fatal error (Invalid argument)
19:04:56: Application finished with exit code 1.
My main() looks like this:
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
makeAsound(); // regardless if this is called or not, crashes.
QTranslator *appTranslator = new QTranslator;
appTranslator->load("harbour-simplesynth-" + QLocale::system().name(), SailfishApp::pathTo("translations").path());
app->installTranslator(appTranslator);
//qmlRegisterType<SoundGenerator>("de.poetaster.sailsynth", 1, 0, "SoundGenerator");
qmlRegisterType<Synthesizer>("de.poetaster.sailsynth", 1, 0, "Synthesizer");
QScopedPointer<QQuickView> view(SailfishApp::createView());
view->setSource(SailfishApp::pathTo("qml/harbour-simplesynth.qml"));
//view->setTitle("SailSynth");
view->show();
return app->exec();