Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-25557

QML Window doesn't show correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • 5.0.0
    • None
    • Linux, Ubuntu 64 11.10, Nvidia propriety drivers.

    Description

      Below is the code that reproduces the problem. Sometime it works, and some times it doesn't. When it doesn't work QtQuick bakes the background behind the window into the window's painting area. Resizing the window after it opens, cause the window to refresh and show it contents. Attached is a screenshot of the issue.

      // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Rectangle {
          width: 360
          height: 360
          Text {
              anchors.centerIn: parent
              text: "Click me :D"
          }
          MouseArea {
              anchors.fill: parent
              onClicked: {
                  redWindow.show()
              }
          }
      
          Window {
              id: redWindow
              x: 100
              y: 100
      
              width: 200
              height: 200
      
              Rectangle {
                  anchors.fill: parent
                  color: "red"
      
                  Text {
                      anchors.centerIn: parent
                      text: "Space Unicorn!";
                  }
              }
          }
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
            vpicaver Philip Schuchardt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes