Qt designer putting stuff in funny places ...
-
Can you post the QML code?
-
Here's the qml code generated ...
@
import QtQuick 2.2
import QtQuick.Controls 1.1ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")menuBar: MenuBar { Menu { title: qsTr("File") MenuItem { text: qsTr("Exit") onTriggered: Qt.quit(); } } } Text { text: qsTr("Hello World") anchors.centerIn: parent } Button { id: button1 x: -40 y: 28 text: qsTr("Button") }
}
@ -
The Button has a negative x position. But when I try it out in the designer then everything does work.
-
By "work" are you saying that the generated qml code when you drag a button under the "Hello World" is different, i.e., doesn't have a negative x value?
-
If I open the file everything works as expected
and if I run the application I get the same "result".Also I can drag in Buttons etc. without problems.
-
Ok, many thanks Thomas. Now I just have to work out how to make a bug report!
When I take a piece of QML code and run it ... things are fine. It's just the Qt Quick Designer which is busted.
-
You can submit a bug report at https://bugreports.qt-project.org/ :)
-
Many thanks JKSH.
-
You're welcome! Please post a link to your report here, so that other people with the same issue can follow it.
-
Ok, I've put in a bug report with screen shot ..