Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Object destroyed during incubation

Object destroyed during incubation

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 4 Posters 4.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • HojjatJafaryH Offline
    HojjatJafaryH Offline
    HojjatJafary
    wrote on last edited by
    #1

    Hi,
    Can not customize any QtQuick Controls 2.0 types, all I get is this error message:
    "Object destroyed during incubation"

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Show us the code please :-) How do you try to customize them?

      (Z(:^

      1 Reply Last reply
      1
      • HojjatJafaryH Offline
        HojjatJafaryH Offline
        HojjatJafary
        wrote on last edited by
        #3

        it is not so complicated, I cannot set even a simple background:
        https://doc.qt.io/qt-5/qtquickcontrols2-customize.html#customizing-menu

        I have menu that is loaded using a Loader object.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Does it work without the Loader?

          (Z(:^

          1 Reply Last reply
          1
          • HojjatJafaryH Offline
            HojjatJafaryH Offline
            HojjatJafary
            wrote on last edited by
            #5

            It works when the Loader is not asynchronous!

            sierdzioS 1 Reply Last reply
            0
            • HojjatJafaryH HojjatJafary

              It works when the Loader is not asynchronous!

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @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.

              (Z(:^

              ekkescornerE 1 Reply Last reply
              0
              • sierdzioS sierdzio

                @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.

                ekkescornerE Offline
                ekkescornerE Offline
                ekkescorner
                Qt Champions 2016
                wrote on last edited by
                #7

                @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

                ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                5.15 --> 6.9 https://t1p.de/ekkeChecklist
                QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                M 1 Reply Last reply
                0
                • ekkescornerE ekkescorner

                  @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

                  M Offline
                  M Offline
                  Marek
                  wrote on last edited by
                  #8

                  @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-50992

                  For 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

                  ekkescornerE 1 Reply Last reply
                  0
                  • M Marek

                    @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-50992

                    For 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

                    ekkescornerE Offline
                    ekkescornerE Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on last edited by
                    #9

                    @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

                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                    5.15 --> 6.9 https://t1p.de/ekkeChecklist
                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                    M 1 Reply Last reply
                    0
                    • ekkescornerE ekkescorner

                      @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

                      M Offline
                      M Offline
                      Marek
                      wrote on last edited by
                      #10

                      @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"

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved