[maemo-developers] How to get kinetic scrolling working using Qt creator
From: Daniil Ivanov daniil.ivanov at gmail.comDate: Sun Jun 6 12:25:55 EEST 2010
- Previous message: How to get kinetic scrolling working using Qt creator
- Next message: How to get kinetic scrolling working using Qt creator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Sudheer! Make sure (with dpkg -l "libqt4*") that you are using Qt >= 4.6.2. Thanks, Daniil. On Sun, Jun 6, 2010 at 11:43 AM, Ram Kurvakat <rkmaemo at gmx.com> wrote: > 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: felipe at crochik.com, daniil.ivanov at 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.guy at hotmail.com > To: felipe at crochik.com; daniil.ivanov at gmail.com > CC: maemo-developers at 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: felipe at crochik.com > To: scifi.guy at hotmail.com; daniil.ivanov at gmail.com > CC: maemo-developers at 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.ivanov at gmail.com >> > To: scifi.guy at hotmail.com >> > CC: maemo-developers at 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 >> > >> > Thanks, Daniil. >> > >> > On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. <scifi.guy at 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 at maemo.org >> > > 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 > > > > ________________________________ > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. > Learn more. > ________________________________ > Hotmail is redefining busy with tools for the New Busy. Get more from your > inbox. See how. > > > >
- Previous message: How to get kinetic scrolling working using Qt creator
- Next message: How to get kinetic scrolling working using Qt creator
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]