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. QQuickWidget blank until resize

QQuickWidget blank until resize

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 412 Views
  • 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.
  • Y Offline
    Y Offline
    ymhsieh
    wrote on last edited by
    #1

    I am trying to load and display the following QML using QQuickWidget. I think I hace setup everything correctly. However, the QQuickWidget shows a blank until I resize my main window. Any tip/hint so that I will be able to two the two rectangles on its initial display? (using Qt 5.9.1 on Win64 platform)

    RowLayout {
    anchors.fill: parent

    Rectangle {
        color: 'blue'
        Layout.fillWidth: true
        Layout.fillHeight: true
    }
    Rectangle {
        color: 'green'
        Layout.fillWidth: true
        Layout.fillHeight: true
    }
    

    }

    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