Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Repaint a QML Scene (QQuickView)
Qt 6.11 is out! See what's new in the release blog

[Solved] Repaint a QML Scene (QQuickView)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.3k 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.
  • A Offline
    A Offline
    alizadeh91
    wrote on last edited by
    #1

    Hi,
    I'm using two widget separated by a splitter. in one widget I've used QQuickView. whenever geometry of QQuickView widget is changed (e.g by changing docwidget position) i want to send it's new geometry to qml by invokemethod. I did it but the problem is that the qml scene will not update itself. Is there any update or repaint method for qml to update itself?
    Actually i want to resize embedded QQuickView automatically.
    Thanks

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

      You can use "setResizeMode()":http://qt-project.org/doc/qt-5.0/qtquick/qquickview.html#resizeMode-prop.

      You need to resize the widget, not the QML inside - that will be done automartically if you have set up your anchors correctly.

      (Z(:^

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alizadeh91
        wrote on last edited by
        #3

        Thanks that solved the problem :)

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

          I'm glad to hear that. Please mark this thread as solved.

          (Z(:^

          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