maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   FingerScrollable in 4.6 (https://talk.maemo.org/showthread.php?t=35601)

cnavarro 2009-12-01 22:42

FingerScrollable in 4.6
 
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

danielwilms 2009-12-02 09:18

Re: FingerScrollable in 4.6
 
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

sjaensch 2009-12-02 12:21

Re: FingerScrollable in 4.6
 
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.

danielwilms 2009-12-02 13:20

Re: FingerScrollable in 4.6
 
Quote:

Originally Posted by sjaensch (Post 404594)
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

cnavarro 2009-12-02 22:23

Re: FingerScrollable in 4.6
 
Quote:

Originally Posted by danielwilms (Post 404713)
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

barbucha 2009-12-02 22:42

Re: FingerScrollable in 4.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.


All times are GMT. The time now is 16:41.

vBulletin® Version 3.8.8