Active Topics

 


Reply
Thread Tools
Posts: 45 | Thanked: 15 times | Joined on Nov 2009 @ Barcelona, Spain
#1
Hi all,

Does this snippet of code work on Qt 4.6 preview?

listWidget_ = new QListWidget();
listWidget_->setProperty("FingerScrollable", true);

It is not working for me... That is, compiles but does not enable finger scrolling behaviour...


It was working in 4.5. It is described in

http://wiki.maemo.org/Qt/Finger_Scrolling

best regards

Carlos
 
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#2
Hi,

the finger scrolling in Qt 4.6 works differently. Here you can find an example. But anyway, this is part of the Preview 2, see here. So it is not supposed to work in earlier versions. But please keep in mind that this is a technology preview and that it always might be possible that the API could change. Like everything, which is in extras-devel, it is still experimental. So stay tuned to that.

UPDATE: So the version in extras-devel (qt4-maemo5 (+git20091125)) is the Tech Preview 2. Sorry for the confusion!

Cheers Daniel

Last edited by danielwilms; 2009-12-02 at 10:48. Reason: update
 

The Following 5 Users Say Thank You to danielwilms For This Useful Post:
Posts: 24 | Thanked: 38 times | Joined on Nov 2009
#3
And beware that currently, using kinetic scrolling in qt4-maemo5 crashes your app if the scrollarea has child widgets. This should be fixed in the next qt4-maemo5 update.
 

The Following 2 Users Say Thank You to sjaensch For This Useful Post:
Posts: 432 | Thanked: 645 times | Joined on Mar 2009
#4
Originally Posted by sjaensch View Post
And beware that currently, using kinetic scrolling in qt4-maemo5 crashes your app if the scrollarea has child widgets.
This is what I tried to say before. These things might happen in a technical preview, and this is the reason why it is in extras-devel. For more information there is a blog-post of Kate, which points to this nice presentation, with examples and more information. It is worth to check that out.

Cheers Daniel
 

The Following 2 Users Say Thank You to danielwilms For This Useful Post:
Posts: 45 | Thanked: 15 times | Joined on Nov 2009 @ Barcelona, Spain
#5
Originally Posted by danielwilms View Post
This is what I tried to say before. These things might happen in a technical preview, and this is the reason why it is in extras-devel. For more information there is a blog-post of Kate, which points to this nice presentation, with examples and more information. It is worth to check that out.

Cheers Daniel
I was able to find the code snooping in the qt code that Daniel pointed out.

For those interested, here is the snippet of code

#include <QMaemo5KineticScroller>
#include <QListWidget>

listWidget_ = new QListWidget();
new QMaemo5KineticScroller(listWidget_);

And your .pro needs to have QT +=maemo5

Thank you all

Last edited by cnavarro; 2009-12-02 at 22:34.
 

The Following User Says Thank You to cnavarro For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Dec 2009
#6
Hi,
I'm using QGraphicsView in my app and it has fingerscroll enabled by default. I would like to disable it, but I can't find how to do this. Is there any way to disable it?

Thanks for help.
 
Reply


 
Forum Jump


All times are GMT. The time now is 03:15.