[Development] Qt 5.2 RC1: QtCreator syntax checker does not recognize the properties of the QtQuick-Control Label
Ziller Eike
Eike.Ziller at digia.com
Thu Nov 14 12:05:03 CET 2013
On Nov 14, 2013, at 10:25 AM, Helmut Mülner <helmut.muelner at gmail.com> wrote:
> HI,
>
> if I use a Label (QtQuick.Controls 1.1) the QtCreator syntax checker does not recognize its attributes, e.g.:
>
>
> import QtQuick 2.1
> import QtQuick.Controls 1.1
>
> ApplicationWindow {
> title: qsTr("Hello World")
> width: 640
> height: 480
>
> Label {
> text: qsTr("Hello World")
> anchors.centerIn: parent
> }
> }
>
>
> …\main.qml:10: error: Invalid property name 'text'. (M16)
>
> Is this a bug or does QtCreator not yet support QtQuick.Controls 1.1?
Well, it's a bug, though technically not in Qt Creator's qml support, but in the type info that is generated for controls for e.g. use of Qt Creator. I heard a quickfix is on the way.
Br, Eike
--
Eike Ziller, Senior Software Engineer - Digia, Qt
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Development
mailing list