maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt/Fremantle/Kinetic scrolling (https://talk.maemo.org/showthread.php?t=40326)

Hexagoon 2010-01-13 14:01

Qt/Fremantle/Kinetic scrolling
 
I bet this question is asked before, however i cant fint a thread about it.

Is it possible to make kinetic scrolling with default qt version (4.5.3?) under framantle? I tried varius filter but no go with that.

Or has anyone made their own routines for this that is re-usable? ;)

Edit: The reason i'm asking is that it would be über-slick to have this in my app "Qtify".

krk969 2010-01-13 14:03

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by Hexagoon (Post 468339)
I bet this question is asked before, however i cant fint a thread about it.

Is it possible to make kinetic scrolling with default qt version (4.5.3?) under framantle? I tried varius filter but no go with that.

Or has anyone made their own routines for this that is re-usable? ;)

updated the wiki Here :D

Im trying it today.
Will update the wiki.

works only in 4.6 AFAIK.

attila77 2010-01-13 14:07

Re: Qt/Fremantle/Kinetic scrolling
 
The version of Qt that knows about finger scrolling will be released with PR1.1, see http://wiki.maemo.org/Qt4_Hildon#FREMANTLE_.28Qt_4.5.29 for details.

Hexagoon 2010-01-13 15:01

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by attila77 (Post 468350)
The version of Qt that knows about finger scrolling will be released with PR1.1, see http://wiki.maemo.org/Qt4_Hildon#FREMANTLE_.28Qt_4.5.29 for details.

Triple-thanks for that :) Really sweet! Now all i has to do is wait for pr1.1 ;)

Edit: Now it works, sweet as hell :)

krk969 2010-01-15 07:04

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by krk969 (Post 468341)
updated the wiki Here :D

Im trying it today.
Will update the wiki.

works only in 4.6 AFAIK.

Ive tried the kinetic scrolling and integrated it into my londonTubeApp, works like a charm.
Ill be updating the wiki as soon as im done testing.

the only issues Ive found
  • I cant make anything kinetic scroll inside my QMainWindow object, that was pretty strange, in case any of you get a chance to try please update the wiki.
  • doesnt kinetic scroll a QWebView AFAIK. ( tried it, the screen responds to my touch but doesnt paint the screen well. )

Hexagoon 2010-01-15 08:23

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by krk969 (Post 473335)
Ive tried the kinetic scrolling and integrated it into my londonTubeApp, works like a charm.
Ill be updating the wiki as soon as im done testing.

the only issues Ive found
  • I cant make anything kinetic scroll inside my QMainWindow object, that was pretty strange, in case any of you get a chance to try please update the wiki.
  • doesnt kinetic scroll a QWebView AFAIK. ( tried it, the screen responds to my touch but doesnt paint the screen well. )


Putting a QAbastractScrollArea inside you mainwindow will solve the first problem, i think

Edit: Or did you mean that no sub-childs of the qmainwindow fingerscrolls?

Sasler 2010-01-15 08:33

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by attila77 (Post 468350)
The version of Qt that knows about finger scrolling will be released with PR1.1, see http://wiki.maemo.org/Qt4_Hildon#FREMANTLE_.28Qt_4.5.29 for details.

I would like to try this very much now, but the wiki.maemo.org is currently down because of the server moves. Does anyone have it open or a sample code that they could copy and paste here? :D

Cheers! :)

Hexagoon 2010-01-15 09:08

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by Sasler (Post 473468)
I would like to try this very much now, but the wiki.maemo.org is currently down because of the server moves. Does anyone have it open or a sample code that they could copy and paste here? :D

Cheers! :)

Wiki is up, but i'll paste the code anyway :) It's easy as pie

Code:

QTableWidget *table = new QTableWidget(this);
 table->setProperty("FingerScrollable", true);

Edit: In Qt Creator you just create a dynamic property (FingerScrollable, bool, true) on the element you wish to enable it on.

Sasler 2010-01-15 09:17

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by Hexagoon (Post 473542)
Edit: In Qt Creator you just create a dynamic property (FingerScrollable, bool, true) on the element you wish to enable it on.

Well that was easy! Works like a charm. :D

Thanks! :)

krk969 2010-01-15 10:04

Re: Qt/Fremantle/Kinetic scrolling
 
Quote:

Originally Posted by Hexagoon (Post 473450)
Putting a QAbastractScrollArea inside you mainwindow will solve the first problem, i think

Edit: Or did you mean that no sub-childs of the qmainwindow fingerscrolls?

well, you need an abstract scroll to init a qmaemo5kineticscroll object.
thats not my issue.

i need to define and init the kinetic scroll objetcs outside qmainwindow for some reason. im still in testing mode, will try postinng something to wiki today eve which i can be sure will work for everybody.

for now if u want to try it

1. define a scrollarea object
2. set your widget in he scrollarea
3. init qmaemo5kineticscroll object with your scroll area

and watch the widget respond to ur touch :D

sorry ill paste code later as im typing this on the n900 microkeyboard while travelling :p

goodluck

krk969 2010-01-19 14:04

Re: Qt/Fremantle/Kinetic scrolling
 
kinectic scrolling works like a charm now, all integrated into QT widgets. :D

I have details updated in the wiki. ==> HERE

I guess it should be the same for QT4.5.3 as well , though Im using 4.6 for development.


All times are GMT. The time now is 00:28.

vBulletin® Version 3.8.8