[Qt-interest] QML: MouseArea and Row/Column

Christian Rüb christian.rueb at gmx.net
Sat Mar 12 14:21:40 CET 2011


Hi,

experimenting with QML I came across the follwing:

Defining a MouseArea for an element within a Row results in a warning:
"QML Row: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row"

How should it be done else? I want all items in the Row to react on the click...

code snippet:

Row {
...
	MouseArea {
		anchors.fill: parent
		onClicked: {
...

Also, is this the right place to ask about QML questions? I have some more ;-)

Cheers,
 Christian



More information about the Qt-interest-old mailing list