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. QQuickView setSource (qml) - hide() / show()

QQuickView setSource (qml) - hide() / show()

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 4.8k Views 1 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.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    Hello,

    I have a problem with QQuickView.

    If I first load a QQuickView, setSource to .qml File and call show() then everything works.

    If I hide() the QQuickView and try show() again, the qml file is not shown.

    I also tried it with setVisible(true/false), but that does not work, too.
    setSource() again does not work, too.

    Can someone help me?

    Thank you.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      william
      wrote on last edited by
      #2

      It seems same to me. I slove it use below code.
      @QQuickItem * rootItem = quickView->rootItem();
      rootItem->setFlag(QQuickItem::ItemHasContents);
      rootItem->update();@

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on last edited by
        #3

        Hi,

        This sounds like a bug -- I'd suggest lodging a bug report at http://bugreports.qt-project.org (preferably with a simple example) so the issue can be followed up.

        Regards,
        Michael

        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