>You might go so far as a file per Item per style, but that is unlikely. You
>create the MyStyledText element, and use that for all your Text. What other
>primitives would you style? Some, like ListViews, you'd likely want to style
>per-instance and not in general (so you just declare those pr
I don't want to toot my own horn, but we were discussing that with
another developer a while ago on the chat, and it would definitely be
very helpful to have a simple and flexible way to assign properties in
batches.
The "subclassing" method (making a separate component) is not flexible
enough whe
> Is there a way to draw a line using QML without any QT C++ stuff?
Only as a transformed thin rectangle/image.
--
Warwick
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
Hi,
Is there a way to draw a line using QML without any QT C++ stuff?
David
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
Actually I like Gregory's better still. While I'd likely put the "style sheet"
stuff in a separate file, your implementation implies that I'd have to have a
file for every item of every style. HTML CSS's files can be one per site, and
that's a huge feature.
And the fact that I can specify font
On Tue, 13 Jul 2010 10:48:46 ext Gregory Schlomoff wrote:
> I second that. Would be very useful to be able to create a predefined
> group of properties, and then assign the group as a whole to any
> object.
>
> Something like this:
>
> PropertyGroup {
> id:bigText
> font.face = "Arial"
> fo
'Properties' might be confusing, 'inherits' would be even better, IMHO.
But yes, whatever the property name, inheriting one or more arbitary attribute
sets would be very versatile. It should be trivial to implement as well.
Gregory's impementation allows any collection of attributes, which is ha
You anchor to a parent like this:
anchors.top: parent.top
Check out the documentation here:
http://doc.qt.nokia.com/4.7-snapshot/anchor-layout.html
On Tue, Jul 13, 2010 at 2:46 AM, Jason H wrote:
> Hi again. I am trying to anchor to parent
> |A|
> |B|
> |C|
>
> With the rect being
I really like Gregory's suggested implementation.
On Jul 12, 2010, at 2:48 PM, Gregory Schlomoff wrote:
> I second that. Would be very useful to be able to create a predefined
> group of properties, and then assign the group as a whole to any
> object.
>
> Something like this:
>
> PropertyGroup
You should probably create some slots on C++ that interact with your
QAbstractItemModel, then call those slots from QML.
The rule is that QML can only call slots or Q_INVOKABLE, and not normal methods.
On Tue, Jul 13, 2010 at 4:40 AM, Almo Nito wrote:
> Hello There,
>
>
>
>
>
> I played around w
I second that. Would be very useful to be able to create a predefined
group of properties, and then assign the group as a whole to any
object.
Something like this:
PropertyGroup {
id:bigText
font.face = "Arial"
font.pointSize: 30
color: "red"
}
Text {
text:"Hello"
properties: [bigTex
> Is there any way to integrate SVGs with QML, in that you can bridge
> into the artwork via id or object name and thus use SVG as templates and
> artwork?
The only support for SVG in QML is that it will load a static SVG image
(rendering it once unless you modify the Image sourceSize dynamical
Hi again. I am trying to anchor to parent
|A|
|B|
|C|
With the rect being the parent. But I get the message: "QML Text: Cannot anchor
to a null item."
importQt4.7
Rectangle {
width: 1024
height:768
gradient: Gradient {
GradientStop { position
I'd like to be able to do this:
Font{id:third;face:"NiteClub";pointSize:30;color:"White"}
Rectangle {
Text{text:"";font:third;anchors.top:parent.anchors.Top}
}
But I get the message "Element is not creatable". I'd like to be able to
specify this as a font class like a style sheet so that I
General information on Qt Mobility (installing, etc):
http://doc.qt.nokia.com/qtmobility-1.0/index.html
Information on the QML multimedia elements:
http://doc.qt.nokia.com/qtmobility-1.0/multimedia.html#qml-multimedia-elements
Regards,
Michael
On 13/07/2010, at 12:41 AM, ext Jason H wrote:
>
Hello There,
I played around with QML today and ended in trying on of the examples in the
docs that actually tried to use the QAbstractItemModel as a file browser.
So I copy-pasted the source and tried out their example with the result that
the root directory is showing up (the "/") and
Hrm. Ok. Is there documentation for these elements?
I'm running the 2.0.80 preview of Creator, how can I get my installation to do
video?
Thanks!
- Original Message
From: "michael.bras...@nokia.com"
To: scorp...@yahoo.com
Cc: qt-qml@trolltech.com
Sent: Sun, July 11, 2010 11:56:15 PM
Nevermind. My bad.
- Original Message
From: "michael.bras...@nokia.com"
To: scorp...@yahoo.com
Cc: qt-qml@trolltech.com
Sent: Mon, July 12, 2010 12:00:18 AM
Subject: Re: [Qt-qml] "QML supports network transparency by using URLs"
On 11/07/2010, at 2:55 PM, ext Jason H wrote:
> When I
Hi Jason,
actually we started working on a full blown transition editor inside the Design
mode. The idea is to have a timeline where you can graphically manipulate
transitions ... I hope we can share some results soon, let's see.
Anyhow, in addition we're improving the qml text editor, and an e
19 matches
Mail list logo