[Qt-qml] Replacing a C++ listview with QML listview
alan.westbrook at nokia.com
alan.westbrook at nokia.com
Fri Aug 13 08:06:29 CEST 2010
Hey Greg,
Thanks for sharing the scrollbar, just a suggestion, as the rest of the QML API seems to use 'target' for components that affect other components, perhaps you should change the 'attachTo' to 'target'
So .. Who's going to make a web 2.0 site for sharing QML bits?
=)
Alan
On Aug 12, 2010, at 8:18 PM, ext Gregory Schlomoff wrote:
Hi guys,
Since there were a few people asking for our Scrollbar component, I just published it in a public Mercurial repository. It lives here:
https://bitbucket.org/gregschlom/qmlscrollbar
<https://bitbucket.org/gregschlom/qmlscrollbar>If you're not using mercurial, there's a "get sources" link on the right that allows you to download a zip file.
I've included a sample qml file demonstrating the usage, as well as the images and the photoshop file for the Scrollbar. Obvioously, you'll want to change that to use yours.
The code is released under the MIT license. It may have bugs, and it probabably can be enhanced (adding support for horizontal scrolling, for example). If you make any changes that make this code better, please feel free to submit patches / merge requests.
Cheers,
Greg
On Thu, Aug 12, 2010 at 8:40 PM, Gregory Schlomoff <gregory.schlomoff at gmail.com<mailto:gregory.schlomoff at gmail.com>> wrote:
We are using QML ListViews in our desktop app. It works well... Now that a lot of bugs have been fixed, and that we really understand how ListView works :)
As for the scrollbar, we made a quick Scrollbar component that works very well. The code looks like this:
ListView {
id: myList
...
}
ScrollBar {
attachTo: myList
}
The scrollbar can be attached to any Flickable (so that includes ListView). But it only works for vertical scrolling, as of now. We may share the code for this component, if it's of any interest to you. Just drop me a mail.
(By the way, that raises again the question of a public place to share qml componentns :) )
Cheers
greg
On Thu, Aug 12, 2010 at 8:31 PM, Riaan Kruger <riaank at gmail.com<mailto:riaank at gmail.com>> wrote:
I am playing with QML and is considering replacing a listview in a C++ (desktop) application with a QML based listview using qdeclarativeview.
I want to do this to demonstrate the capabilities of QML and because I find customizing list/tree views in Qt C++ hard.
Is this a good idea, or am I in for some hurt?
What is the best strategy for handling scrolling; scrollbars are normally preferred on the desktop
Riaan
_______________________________________________
Qt-qml mailing list
Qt-qml at trolltech.com<mailto:Qt-qml at trolltech.com>
http://lists.trolltech.com/mailman/listinfo/qt-qml
<ATT00001..txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100813/b81af020/attachment.html
More information about the Qt-qml
mailing list