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

QML Windows element behaviour has changed from Qt 5.9 to Qt 5.12.

    XMLWordPrintable

Details

    • 1dcd4ff086f55392f7d194e2e4a9e4cff599d0f6 (qt/qtdeclarative/5.15)

    Description

      User reported us that following code used to work on Qt 5.9 but does not work since 5.12.

      Qt support has tested it on Qt 5.9, 5.12 and 5.14.

      import QtQuick 2.6
      import QtQuick.Window 2.2
      
      Rectangle
      {
      	width: 300
      	height: 200
      
              Window
      	{
      		id: ventanaPrueba
      
      		visible: true
      
      		width: 300
      		height: 200
      
      		modality: Qt.ApplicationModal
      
      		Text
      		{
      			id: texto
      
      			text: qsTr("Prueba")
      		}
      	}
      }

      Code does work on Qt 5.12 and 5.14 if Window line is changed to

      property var ventana: Window
      

      If QQuickView is used there is no issue on Qt 5.12 and 5.14

       

      Example project has been attached.

      By changing the rotatingsquare.qml's line 9 the behavior can be noticed.

       

      Attachments

        1. INC-1349882.zip
          28 kB
        2. qtbug82815_qv.zip
          2 kB
        3. qtbug82815.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            michal Michal Klocek
            tero.pelkonen Tero Pelkonen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes