Can’t use maximumLineCount
-
Hi!
I'm using Qt Creator 2.0.94 (2.1.0-rc1) and I would like to take advantage of the property "maximumLineCount: 1" but it says that that is not a property.
I use import Qt 4.7
I cannot use import QtQuick 1.0 or 1.1 it says that it is not installed.I think that the documentation of Qt is a little bit messy because, for eg, use examples that can't be used on the program
-
-
the property is this:
http://doc.qt.nokia.com/4.7-snapshot/qml-text.html#maximumLineCount-propi would like to use it here:
@Text {
id: categoryText
width: parent.width
height: parent.height / 2
anchors.verticalCenter: category.verticalCenter
font.pointSize: 15
font.family: "Helvetica"
font.bold: true
horizontalAlignment: "AlignHCenter"
color: "white"
wrapMode: "WrapAnywhere"
maximumLineCount: 1text: "Ecónomia" }@
the qt ide don't have an auto-update? should I uninstall the actual version or just install it on top of the actual?
-
The Qt SDK has Qt 4.7.2, which includes QtQuick 1.0, not QtQuick 1.1.
QtQuick 1.1 is scheduled for a later Qt release. If you want to use it now, you'll need to grab the Qt 4.7 source code from the repository at http://qt.gitorious.org/qt .
The documentation under http://doc.qt.nokia.com/4.7-snapshot shows the latest documentation in the 4.7 branch, which may include features that have not yet been released.
-
my sdk has Qt 4.7.1, at least according to the information in the about, and i've downloaded the latest beta:
Qt Creator 2.1.0
Based on Qt 4.7.1 (64 bit)Built on Feb 16 2011 at 07:33:41
From revision 72201a845e
Copyright 2008-2011 Nokia Corporation. All rights reserved.
The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-
-
The property is not read-only, so it looks like a bug in the documentation. This has been reported as http://bugreports.qt.nokia.com/browse/QTBUG-17972.
-
I've used it on Qt Quick 2.0.
I think the only bag is this line: "Was introduced in QtQuick 1.1."@Text
{
anchors.centerIn: parent
width: 200
font.pixelSize: 24
maximumLineCount:2
wrapMode: Text.WordWraptext: "This course will discuss the major ideas used today" }@