Re: [Qt-qml] problem with transitions

2010-04-20 Thread michael.brasser
Hi, On 20/04/2010, at 8:06 PM, ext Gianni Valdambrini wrote: > I wrote a custom element that looks like a text element with a slide > effect on the text change. > The problem is in the transition. The element works in this way: > there are 2 text elements, one placed on the left and the other on t

Re: [Qt-qml] Repeater element missing the border between the items

2010-04-20 Thread Rakesh.Mutharaju
Hi, I tried the "spacing" property., something strange happening in my system. Column { spacing: 20 Repeater {., } } I don't see the color code set in the rectangle (not even the interior color) neither the border, a

Re: [Qt-qml] hasChildren attribute for Qml Model?

2010-04-20 Thread Martin Jones
I've added a hasModelChildren property to the delegate and a couple of helper functions to VisualDataModel: - VisualDataModel::modelIndex(int) returns a QModelIndex which can be assigned to VisualDataModel::rootIndex - VisualDataModel::parentModelIndex() returns a QModelIndex which can be assig

Re: [Qt-qml] Adding buttons to QWebView -- with flickable scrolling

2010-04-20 Thread Various Artist
I didn't explain this well, but what I was trying to do was add buttons that remained fixed within a tool bar (rather than move with the scrolling web page). But never mind...I ended up following a different approach by having a separate window for the buttons.P. From: thevariousart...@hotma

Re: [Qt-qml] Showing text into the console

2010-04-20 Thread warwick.allison
> print() Please don't use that one. It's a QtScript extension, and makes your JS quite incompatible with browser JS (which "print" is something in the "File" menu). -- Warwick ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trolltech.com/ma

Re: [Qt-qml] Qml WebView performance issues -- how to address?

2010-04-20 Thread warwick.allison
> And, more important, the performances of QDeclarativeWebView are > inferior to QWebView. That's interesting, since QDeclarativeWebView is faster on some hardware, since it has an image cache (is the WebView.pixelCacheSize set large enough for your screen?). Unfortunately, the only advice I can

Re: [Qt-qml] QML and Unix #!/path/to/interpreter

2010-04-20 Thread warwick.allison
> QML could be an extremely nifty tool for writing simple script style > applications without compromising in the user interface front. > Supporting the #! syntax would make it even more attractive, at least > to me. And even more so to the hordes of Meego hackers already banging at > the gates ;-)

[Qt-qml] Adding buttons to QWebView -- with flickable scrolling

2010-04-20 Thread Various Artist
Given the performance issues experienced with flickable scrolling on th3e QML Web Browser, I am trying something else: http://labs.trolltech.com/blogs/2008/11/15/flick-list-or-kinetic-scrolling/ This works really well on our target platform! Flickable scrolling is great and the web page see

Re: [Qt-qml] Showing text into the console

2010-04-20 Thread matthias.ettrich
print() Matthias From: qt-qml-boun...@trolltech.com [qt-qml-boun...@trolltech.com] On Behalf Of ext Jack Wootton [jackwoot...@gmail.com] Sent: Tuesday, April 20, 2010 4:42 PM To: dominic.gen...@biocad.ca Cc: qt-qml@trolltech.com Subject: Re: [Qt-qml] Showi

Re: [Qt-qml] Showing text into the console

2010-04-20 Thread Jack Wootton
console.log() On Tue, Apr 20, 2010 at 3:29 PM, Dominic Genest wrote: > Hello, > > Is there a way to display text into a console, in QML? Is there a method > accessible for that in the global namespace, that is equivalent to > "std::cout" or "qDebug"? > > Thanks, > > Dom > > > ___

[Qt-qml] Showing text into the console

2010-04-20 Thread Dominic Genest
Hello, Is there a way to display text into a console, in QML? Is there a method accessible for that in the global namespace, that is equivalent to "std::cout" or "qDebug"? Thanks, Dom ___ Qt-qml mailing list Qt-qml@trolltech.com http://lists.trollt

[Qt-qml] Reference documentation for Component

2010-04-20 Thread Dominic Genest
Hi, Is there a reference to functions that are inside of "Component" QML element? In the text "Creating Objects Dynamically", it is written that we can call "createObject" and "destroy" on components. Are there other methods? Is there a specific page that documents methods of "Component"s? Or

[Qt-qml] problem with transitions

2010-04-20 Thread Gianni Valdambrini
Hi all, I wrote a custom element that looks like a text element with a slide effect on the text change. The problem is in the transition. The element works in this way: there are 2 text elements, one placed on the left and the other on the right of the element. The latter has the same left and rig

Re: [Qt-qml] hasChildren attribute for Qml Model?

2010-04-20 Thread Stephen Kelly
Martin Jones wrote: > On Tue, 20 Apr 2010 07:56:17 pm ext Stephen Kelly wrote: >> Martin Jones wrote: >> > On Mon, 19 Apr 2010 10:09:17 pm ext Stephen Kelly wrote: >> >> In QTreeView, that's a [+] which you can click to expand. >> > >> > You could add a Q_INVOKABLE method to your model to get the

Re: [Qt-qml] hasChildren attribute for Qml Model?

2010-04-20 Thread Martin Jones
On Tue, 20 Apr 2010 07:56:17 pm ext Stephen Kelly wrote: > Martin Jones wrote: > > On Mon, 19 Apr 2010 10:09:17 pm ext Stephen Kelly wrote: > >> In QTreeView, that's a [+] which you can click to expand. > > > > You could add a Q_INVOKABLE method to your model to get the child count, > > similar to

Re: [Qt-qml] Qml WebView performance issues -- how to address?

2010-04-20 Thread Ivan De Marino
I use N900 (no overclock), without OpenGL rendering. I get myself not as good performances as on the desktop. And, more important, the performances of QDeclarativeWebView are inferior to QWebView. What would be REALLY nice is that the rendering was done in a way that would allow panning around wh

Re: [Qt-qml] hasChildren attribute for Qml Model?

2010-04-20 Thread Stephen Kelly
Martin Jones wrote: > On Mon, 19 Apr 2010 10:09:17 pm ext Stephen Kelly wrote: >> In QTreeView, that's a [+] which you can click to expand. > > You could add a Q_INVOKABLE method to your model to get the child count, > similar to the setRoot() method in this example: > > http://qt.nokia.com/doc/

Re: [Qt-qml] Repeater element missing the border between the items

2010-04-20 Thread Rakesh.Mutharaju
Thanks! I didn't check "Column" Properties so far, sorry. I checked the tests "repeater" folder which didn't have "spacing" property used. Hope it works., cheers, Rakesh.M From: qt-qml-boun...@trolltech.com [mailto:qt-qml-boun...@trolltech.com] On Behalf Of aaron

Re: [Qt-qml] Repeater element missing the border between the items

2010-04-20 Thread aaron.kennedy
Hi, Like Alan this works fine for me - the border is definitely visible. Perhaps you are using an older version that might have a bug? Cheers, Aaron On 20/04/10 6:22 PM, ""Alpert (Nokia-D-Qt/Brisbane)"" wrote: Tirsdag 20. april 2010 18:08:06 skrev ext rakesh.muthar...@tieto.com : > Hi,

Re: [Qt-qml] Repeater element missing the border between the items

2010-04-20 Thread Alan Alpert
Tirsdag 20. april 2010 18:08:06 skrev ext rakesh.muthar...@tieto.com : > Hi, > > I have a similar type of list content, instead of rewriting them > for n-number of times I used Repeater element, I noticed that the border > or seperator between the items is lost. > > For eg., > >

[Qt-qml] Repeater element missing the border between the items

2010-04-20 Thread Rakesh.Mutharaju
Hi, I have a similar type of list content, instead of rewriting them for n-number of times I used Repeater element, I noticed that the border or seperator between the items is lost. For eg., Rectangle { id: myitemrect1 x: 0

Re: [Qt-qml] QML and Unix #!/path/to/interpreter

2010-04-20 Thread Pertti Kellomäki
On 04/20/2010 10:29 AM, Alpert Alan (Nokia-D-Qt/Brisbane) wrote: > I fully agree that qmlsh, which you are welcome to start ;), should > allow a #! syntax for its source files. Unless there are some sandboxing issues that I am not aware of, it would seem that pretty much the only thing missing fro

Re: [Qt-qml] QML and Unix #!/path/to/interpreter

2010-04-20 Thread Alan Alpert
Tirsdag 20. april 2010 16:40:15 skrev du: > On 04/19/2010 04:18 PM, Alpert Alan (Nokia-D-Qt/Brisbane) wrote: > > It is not possible because the first line is not valid QML (starting > > with #!). > > Note that # will not start a comment in QML. > > Yes, I realize that. However, the #! interpreter