just a quick example that would work, see if it helps.

 imageLabel = new QLabel;
 QImage image(someimagefile);
 imageLabel->setPixmap(QPixmap::fromImage(image));

 _scrollForMapPage = new QScrollArea;
 _scrollForMapPage->setWidget(imageLabel);

 _mapWindow = new QMainWindow ( this );
 _mapWindow->setCentralWidget(_scrollForMapPage);
 _mapWindow->show();

you dont need to set any property as Daniil set most widgets have kinetic 
scrolling by default like ListWidget/TableWidget/ScrollArea.

cheers
-krk969

----- Original Message -----
From: Sudheer K.
Sent: 06/06/10 05:08 AM
To: fel...@crochik.com, daniil.iva...@gmail.com
Subject: RE: How to get kinetic scrolling working using Qt creator

 Anyone know of any applications that are using Qt Creator (.ui files) and were 
successful in implementing kinetic scrolling? Maybe I can look at the forms to 
see what I am doing wrong here.

Thanks,
Sudheer
-----------------------------------------------------------------
From: scifi....@hotmail.com
To: fel...@crochik.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 20:57:38 -0700


Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it :)

Another thing is I can display the scrollbar using "verticalscrollbarpolicy" 
but it doesn't actually scroll anything.
-----------------------------------------------------------------
From: fel...@crochik.com
To: scifi....@hotmail.com; daniil.iva...@gmail.com
CC: maemo-developers@maemo.org
Subject: RE: How to get kinetic scrolling working using Qt creator
Date: Sat, 5 Jun 2010 23:52:45 -0400

 One silly question: are you trying it on the actual device? It won't work on 
the simulator or if you compile for the desktop. 

----- Original message ----- 
> 
> Hi Daniil, 
> 
> I could not get the scrolling to work by using QScrollArea, even after 
> removing the FingerScrollable property. Any suggestions on what I should 
> change? 
> 
> I have tried setting "WidgetResizable" to true on QScrollArea, still 
> scrolling does not work. 
> 
> If it matters, there are sizes I have set in my form. 
> 
> ConfigWindow (QMainWindow) - 800 x 480 
> centralWidget (QWidget) - 800 x 457 
> scrollArea (QScrollArea) - 800 x 550 
> scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be 
> modified). 
> 
> All the examples I have seen (even on Qt site) use custom code to create 
> QWidget or QWindow. But I am using Qt creator to create the form and I 
> couldn't find much help. 
> 
> 
> > Date: Sat, 5 Jun 2010 21:52:29 +0300 
> > Subject: Re: How to get kinetic scrolling working using Qt creator 
> > From: daniil.iva...@gmail.com
> > To: scifi....@hotmail.com
> > CC: maemo-developers@maemo.org
> > 
> > Hi Sudheer! 
> > 
> > There is no such property as FingerScrollable and kinetic srolling 
> > is enabled by default for QScrollArea 
> > http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details 
> > http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details 
> > 
> > Thanks, Daniil. 
> > 
> > On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. <scifi....@hotmail.com> 
> > wrote: 
> > > Hi All, 
> > > 
> > > I have created a QScrollArea to a QMainWindow in a form using Qt 
> > > Creator. I have set the dynamic property "FingerScrollable" to true 
> > > (bool) for QMainWindow, QScrollArea and the contents of QScrollArea. 
> > > 
> > > This is the structure of my form objects in the format objectname 
> > > (ClassName): 
> > > 
> > > ConfigWindow (QMainWindow) --> centralWidget (QWidget) --> scrollArea 
> > > (QScrollArea) --> scrollAreaWidgetContents (QWidget) -->groupBox 
> > > (QGroupBox). 
> > > 
> > > I have set the "FingerScrollable" property to true for all these 
> > > objects. But still I am not able to get kinetic scrolling working 
> > > for the form. Am I missing something? 
> > > ________________________________ 
> > > Hotmail is redefining busy with tools for the New Busy. Get more 
> > > from your inbox. See how. 
> > > _______________________________________________ 
> > > maemo-developers mailing list 
> > > maemo-developers@maemo.org
> > > https://lists.maemo.org/mailman/listinfo/maemo-developers 
> > > https://lists.maemo.org/mailman/listinfo/maemo-developers 
> > > 
> > > 
> 
> _________________________________________________________________ 
> The New Busy is not the too busy. Combine all your e-mail accounts with 
> Hotmail. 
> http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
>  
> http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
>  



-----------------------------------------------------------------
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. 
Learn more. 
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
 
-----------------------------------------------------------------
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox. See how. 
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to