Unsolved Object destroyed during incubation
-
Hi,
Can not customize any QtQuick Controls 2.0 types, all I get is this error message:
"Object destroyed during incubation" -
Show us the code please :-) How do you try to customize them?
-
it is not so complicated, I cannot set even a simple background:
https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-menuI have menu that is loaded using a Loader object.
-
Does it work without the Loader?
-
It works when the Loader is not asynchronous!
-
@HojjatJafary said in Object destroyed during incubation:
It works when the Loader is not asynchronous!
Hah, interesting. I think you can report it to Qt devs as a bug.
-
@sierdzio said in Object destroyed during incubation:
@HojjatJafary said in Object destroyed during incubation:
It works when the Loader is not asynchronous!
Hah, interesting. I think you can report it to Qt devs as a bug.
take a look at this bugreport: https://bugreports.qt.io/browse/QTBUG-50992
and yes: usimng async Loader is best workaround at the moment
-
@ekkescorner what do You mean by "using async Loader" ?
I was working on splash screen for my app, using this method: Complete Guide to Making a Splash Screen for your QML Android Application and this method uses Loader with asynchronous: true when I have found this
https://bugreports.qt.io/browse/QTBUG-50992For now I have only splash screen from AndroidMainfest, then white screen blinking and then my app.
Other examples of SplashScreen also uses Loader with asynchronous:true
So, is there something I can do about it ?Best Regards
Marek -
@Marek never did a Splash Screen. From my experiences with ListView delegates per ex. I have to use Loader (async true) if delegate contains customized QtQuickControls2 to avoid the "Object destroyed...." error
-
@ekkescorner Hmm... according to this bug and what @HojjatJafary says when you set asynchronous: true in Loader it does end up with an error "Object destroyed during incubation"