Although this problem is not specific to QML but my application is QML
application in which I am getting error, based on qt4.7 beta2.
QSqlDatabase defaultDB = QSqlDatabase::addDatabase("QMYSQL");
defaultDB.setDatabaseName( "***" );
defaultDB.setUserName( "***" );
defaultDB
On 04/08/2010, at 8:17 PM, ext Jan Ekholm wrote:
> On Wednesday 04 August 2010 05:53:13 michael.bras...@nokia.com wrote:
>> Hi,
>>
>> On 03/08/2010, at 4:55 AM, ext Jan Ekholm wrote:
>>> I was recommended to make a C++ QDeclarativeItem subclass for my game map
>>> tiles to get better performance.
Thanks Bea, that's exactly what I needed!
Yes, should be nice to see that in the reference documentation
geg
On Thu, Aug 5, 2010 at 12:03 PM, wrote:
>
> On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote:
>
>> Isn't there a way to expose an enum to QML with qRegisterType or something?
>>
>
On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote:
> Isn't there a way to expose an enum to QML with qRegisterType or something?
>
If an enum is exposed to Qt's Meta Object system using Q_ENUMS, the enum is
automatically available to QML.
This is mentioned in
http://doc.qt.nokia.com/4.7
Edit: a work around that I just found:
=== MyScrollbar.qml ==
Rectangle {
property int orientation: undefined
property alias scrollbar: scrollbar
QtObject { // this is my "enum" :)
id: scrollbar
property int vertical: 1
property int horizontal: 2
}
[...]
}
=== app.qml ===
MyScrollb
Isn't there a way to expose an enum to QML with qRegisterType or something?
How do you guys expose enumerations to QML?
While I understand that Javascript is weakly typed and hasn't such
concept as constants, when you are developing generic components, it's
very scary to do stuff like that:
MySc
On Thu, 5 Aug 2010 10:36:29 ext Alex wrote:
> Is there any way to declare enumerations in QML? For example, assume I
> have a custom element called "MyText" that has a property called
> sizeType, for which the possible values are: "small", "medium", or
> "big."
>
> The implementation of MyText wi
+1, same question here
On Thu, Aug 5, 2010 at 7:36 AM, Alex wrote:
> [ Sorry, I'll stop flooding the mailing list in a minute :-) ]
>
> Is there any way to declare enumerations in QML? For example, assume I
> have a custom element called "MyText" that has a property called
> sizeType, for whic
You can also use PathAttribute
(http://doc.qt.nokia.com/4.7-snapshot/qml-pathattribute.html) -- that allows
you to change the appearance of the items in the view based on their position
in the path.
Michael
On 05/08/2010, at 3:58 AM, ext alan.westbr...@nokia.com wrote:
> Bind properties of th
[ Sorry, I'll stop flooding the mailing list in a minute :-) ]
Is there any way to declare enumerations in QML? For example, assume I
have a custom element called "MyText" that has a property called
sizeType, for which the possible values are: "small", "medium", or
"big."
The implementation of
That works great, thanks!
Alex
On Wed, Aug 4, 2010 at 5:14 PM, wrote:
> On 05/08/2010, at 10:02 AM, ext Alex wrote:
>
>> C++ method:
>>
>> void Sequencer::addItem(QDeclarativeItem *item)
>> {
>> item->setOpacity(1);
>> }
>>
>>
>> Representative QML, not verbatim:
>>
>> Behavior on opacity
That's much better. I totally missed ScriptAction.
I think I prefer this to your other suggestion (using
onPlaybackCompleted) since it allows me to keep all the sequencing
information in one place.
My playback function is asynchronous, but I suppose I can add a method
to retrieve the duration be
On 05/08/2010, at 8:38 AM, ext Alex wrote:
> As you saw, I am using SequentialAnimation to sequence animations, but
> what if I want a non-animation in the sequence?
>
> For example, assume I've exposed a C++ "MediaPlayer" component to QML,
> which has a playFile(path) slot and playbackCompleted()
On 05/08/2010, at 10:02 AM, ext Alex wrote:
> C++ method:
>
> void Sequencer::addItem(QDeclarativeItem *item)
> {
>item->setOpacity(1);
> }
>
>
> Representative QML, not verbatim:
>
>Behavior on opacity {
>NumberAnimation { to: 1; duration: 1000 }
>}
>
> This correctly cha
Hi,
On 05/08/2010, at 8:38 AM, ext Alex wrote:
> Is there a declarative approach for me to express the following?
>
> 1. animate fade-in for element A
> 2. play sound(S) and wait for completion
> 3. animate fade-in for element B
Typcially ScriptAction is used insert a block of script to execu
Makes sense. I cooked up something similar, but I don't like it at all :-)
Instead, I started creating a C++ class for sequencing these things,
but ran into a strange (?) issue.
C++ method:
void Sequencer::addItem(QDeclarativeItem *item)
{
item->setOpacity(1);
}
Representative QML, not v
Interesting problem.
I haven't seen anything that is designed for this type of thing, perhaps the
guys in Brisbane have an idea for that.
But, I have an idea for a way to do it:
* Se up Element A onOpacityChanged to start playing sound
* Know (before hand) how long the audio clip is.
Widget
Hi there
I think you are missing a concept regarding how states work in QtQuick.
Every item has an implicit state called "". By default every item starts in
that state with the initial properties set. With that in mind, the following
makes more sense.
On Wed, Aug 4, 2010 at 1:17 PM, Stephen Col
Thanks, Alan.
I have another question related to my example.
As you saw, I am using SequentialAnimation to sequence animations, but
what if I want a non-animation in the sequence?
For example, assume I've exposed a C++ "MediaPlayer" component to QML,
which has a playFile(path) slot and playbackC
I'm not sure if there is an easy declarative way to do that.
You could probably write a javascript function that would take care of some of
the typing, something like:
Component.onCompleted: {
for(var i = 0; i < target_id_list.count(); ++i)
{
var obj = numberAnima
Hi Alan,
Sorry for not being more clear.
I have a large number of pages, with each page containing several
elements. The "fading in" behaviour applies to the elements on a
given page.
The large number of pages is my motivation for encapsulating this
behaviour, so I don't have to re-implement it
So it's a slideshow and each element is a page, and you have hundreds of pages?
Or do you have a few pages each with a bunch of elements?
Or do you have hundreds of elements which pop in and out on a single page?
Depending on what you mean, you could try putting your elements in a model and
ite
Hi all,
I am building an application that has a PowerPoint-like informational
component. To this end, I have a bunch of QML files that display
content progressively, with items fading in one at a time.
In my current implementation, I give each object an id and set opacity
to 0. I then have a Sequ
Bind properties of those objects to data in the model elements.
Change the date in the model elements.
That's what I ended up doing, anyway.
Alan
On Aug 4, 2010, at 3:29 AM, ext abhi chougala wrote:
> hi,
> in qml if i need to change the properties of the objects of pathview
> element then ho
The following example comes from the docs for Flippable:
import Qt 4.7
Flipable {
id: flipable
width: 240
height: 240
property int angle: 0
property bool flipped: false
front: Image { source: "front.png" }
back: Image { source: "back.png" }
transform: Rotation {
origin.x: flipable.width/2; ori
Thanks for the quick response. I modified my apache config to add a
future expire date and that worked.
Thanks!
Mike
On 8/3/10, warwick.alli...@nokia.com wrote:
> > I was wondering if there is a way to set the cache control within qml.
> > I would like to set the control to QNetworkRequest::Pr
Further investigation made clear that onFocusChange is not being
emitted when the item is inside a FocusScope. I filed a bug for that:
http://bugreports.qt.nokia.com/browse/QTBUG-12649
Thanks.
Greg
On Wed, Aug 4, 2010 at 7:02 PM, wrote:
> Hi,
>
> Sounds broken - please file a bug.
>
> Cheers,
Hi,
Sounds broken - please file a bug.
Cheers,
Aaron
On 04/08/2010, at 9:52 PM, ext Gregory Schlomoff
wrote:
> Hello everyone,
>
> We are using the latest version of Qt 4.7 from the repository, and the
> focus works very well, in a very intuitive way, much better than with
> the old "wantsF
Hello everyone,
We are using the latest version of Qt 4.7 from the repository, and the
focus works very well, in a very intuitive way, much better than with
the old "wantsFocus".
Except for one thing: onFocusChanged never gets called.
Sure, we could use onActiveFocusChanged instead, and indeed,
hi,
in qml if i need to change the properties of the objects of pathview
element then how do i do it.
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
This gets me thinking: it would be really nice if there were more
information on what exactly QML is doing behind the scene. What
impacts performance, and what doesn't.
What costs the most, in QML? Bindings? Javascript evaluation? Memory
allocation for items? And why? Yes, I'm aware that some of t
On Wednesday 04 August 2010 05:53:13 michael.bras...@nokia.com wrote:
> Hi,
>
> On 03/08/2010, at 4:55 AM, ext Jan Ekholm wrote:
> > I was recommended to make a C++ QDeclarativeItem subclass for my game map
> > tiles to get better performance. This worked well
>
> Given the simplicity of the QML
smooth: true
Martin.
From: qt-qml-boun...@trolltech.com [qt-qml-boun...@trolltech.com] On Behalf Of
ext Shady Zayat [sh...@zoogylabs.com]
Sent: Wednesday, 4 August 2010 7:23 PM
To: qt-qml@trolltech.com
Subject: [Qt-qml] Antialiasing
Is there a was to enab
Is there a was to enable antialiasing. Text is barely readable when rotated.
This is on Mac and Linux, I haven't tried Windows yet.
--
Shady Zayat
___
Qt-qml mailing list
Qt-qml@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-qml
34 matches
Mail list logo