Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.8.0-beta1
-
-
7c92db106d5b7ea1696fe4df54033f4979d077e5 (qt-creator/qt-creator/master)
Description
Steps to reproduce:
- create a Qt Quick Application (Empty) from template
- remove the QtQuick.Window import
- mark the code from
Window {
until (excluding) the closing curly brace of the Window item
- paste the following
Rectangle { id: window property string txtCnt: "Property" signal clicked function clicked() { console.log("click") } width: 800; height: 640 color: "white" Text { id: addedText text: "Squish QML outline test" color: "darkcyan" font.bold: true anchors.centerIn: parent }
- check the function clicked() inside the outline - there's a value assigned (for me it's a 'qsTr("Hello World")' - but I have seen others as well (depending on whether you replace or substitute code)
Found by Squish test tst_qml_outline.
Attachments
For Gerrit Dashboard: QTCREATORBUG-21335 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
245916,3 | Squish: Mark test as expected fail | 4.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
301746,2 | QmlJSEditor: Clear old values when updating outline | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |