<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><title></title><meta http-equiv="Content-type" content="text/html; charset=UTF-8" /><style type="text/css">p { margin:0px; padding:0px; }</style></head><body style='background-color:rgb(255, 255, 255);background-image:none;background-repeat:repeat;background-position:0% 0%;font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:12px;margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;padding-top:5px;padding-bottom:5px;padding-left:5px;padding-right:5px;'><p><span style="font-family:'Courier New';"><font size="3">just a quick example that would work, see if it helps.</font></span></p><p><span style="font-family:'Courier New';"><font size="3"><br /></font></span></p><p><span style="font-family:'Courier New';"><font size="3"><p><font class="Apple-style-span" color="#0000FF"> imageLabel = new QLabel;</font></p><p><font class="Apple-style-span" color="#0000FF"> QImage image(someimagefile);</font></p><p><font class="Apple-style-span" color="#0000FF"> imageLabel->setPixmap(QPixmap::fromImage(image));</font></p><p><font class="Apple-style-span" color="#0000FF"><br /></font></p></font></span></p><p><span style="font-family:'Courier New';"><font size="3"><p><font class="Apple-style-span" color="#0000FF"> _scrollForMapPage = new QScrollArea;</font></p><p><font class="Apple-style-span" color="#0000FF"> _scrollForMapPage->setWidget(imageLabel);</font></p><p><p><font class="Apple-style-span" color="#0000FF"><br /></font></p><p><font class="Apple-style-span" color="#0000FF"> _mapWindow = new QMainWindow ( this );</font></p></p><p><font class="Apple-style-span" color="#0000FF"> _mapWindow->setCentralWidget(_scrollForMapPage);</font></p><p><font class="Apple-style-span" color="#0000FF"> _mapWindow->show();</font></p><div><br /></div><div>you dont need to set any property as Daniil set most widgets have kinetic scrolling by default like ListWidget/TableWidget/ScrollArea.</div><div><br /></div><div>cheers</div><div>-krk969</div><div><br /></div><div><br /></div></font></span></p><font size="3"><p></p><blockquote class="quote" type="cite"><p>----- Original Message -----</p><p>From: Sudheer K.</p><p>Sent: 06/06/10 05:08 AM</p><p>To: felipe@crochik.com, daniil.ivanov@gmail.com</p><p>Subject: RE: How to get kinetic scrolling working using Qt creator</p><br /><div> 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.<br /><br />Thanks,<br />Sudheer<br /><hr id="stopSpelling" />From: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','scifi.guy@hotmail.com');">scifi.guy@hotmail.com</a><br />To: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','felipe@crochik.com');">felipe@crochik.com</a>; <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','daniil.ivanov@gmail.com');">daniil.ivanov@gmail.com</a><br />CC: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','maemo-developers@maemo.org');">maemo-developers@maemo.org</a><br />Subject: RE: How to get kinetic scrolling working using Qt creator<br />Date: Sat, 5 Jun 2010 20:57:38 -0700<br /><br /><style> .ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Verdana;} </style> <br />Yes, I am compiling on FREMANTLE_ARMEL and copying to device and testing it :)<br /><br />Another thing is I can display the scrollbar using "verticalscrollbarpolicy" but it doesn't actually scroll anything.<br /><hr id="ecxstopSpelling" />From: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','felipe@crochik.com');">felipe@crochik.com</a><br />To: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','scifi.guy@hotmail.com');">scifi.guy@hotmail.com</a>; <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','daniil.ivanov@gmail.com');">daniil.ivanov@gmail.com</a><br />CC: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','maemo-developers@maemo.org');">maemo-developers@maemo.org</a><br />Subject: RE: How to get kinetic scrolling working using Qt creator<br />Date: Sat, 5 Jun 2010 23:52:45 -0400<br /><br /> 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. <br /><br />----- Original message ----- <br />> <br />> Hi Daniil, <br />> <br />> I could not get the scrolling to work by using QScrollArea, even after <br />> removing the FingerScrollable property. Any suggestions on what I should <br />> change? <br />> <br />> I have tried setting "WidgetResizable" to true on QScrollArea, still <br />> scrolling does not work. <br />> <br />> If it matters, there are sizes I have set in my form. <br />> <br />> ConfigWindow (QMainWindow) - 800 x 480 <br />> centralWidget (QWidget) - 800 x 457 <br />> scrollArea (QScrollArea) - 800 x 550 <br />> scrollAreaWidgetContents (QWidget) - 798 x 548 (this can not be <br />> modified). <br />> <br />> All the examples I have seen (even on Qt site) use custom code to create <br />> QWidget or QWindow. But I am using Qt creator to create the form and I <br />> couldn't find much help. <br />> <br />> <br />> > Date: Sat, 5 Jun 2010 21:52:29 +0300 <br />> > Subject: Re: How to get kinetic scrolling working using Qt creator <br />> > From: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','daniil.ivanov@gmail.com');">daniil.ivanov@gmail.com</a> <br />> > To: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','scifi.guy@hotmail.com');">scifi.guy@hotmail.com</a> <br />> > CC: <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','maemo-developers@maemo.org');">maemo-developers@maemo.org</a> <br />> > <br />> > Hi Sudheer! <br />> > <br />> > There is no such property as FingerScrollable and kinetic srolling <br />> > is enabled by default for QScrollArea <br />> > <a href="http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details" target="_blank">http://doc.qt.nokia.com/qt-maemo-4.6/qabstractkineticscroller.html#details</a> <br />> > <br />> > Thanks, Daniil. <br />> > <br />> > On Sat, Jun 5, 2010 at 8:10 PM, Sudheer K. <<a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','scifi.guy@hotmail.com');">scifi.guy@hotmail.com</a>> <br />> > wrote: <br />> > > Hi All, <br />> > > <br />> > > I have created a QScrollArea to a QMainWindow in a form using Qt <br />> > > Creator. I have set the dynamic property "FingerScrollable" to true <br />> > > (bool) for QMainWindow, QScrollArea and the contents of QScrollArea. <br />> > > <br />> > > This is the structure of my form objects in the format objectname <br />> > > (ClassName): <br />> > > <br />> > > ConfigWindow (QMainWindow) --> centralWidget (QWidget) --> scrollArea <br />> > > (QScrollArea) --> scrollAreaWidgetContents (QWidget) -->groupBox <br />> > > (QGroupBox). <br />> > > <br />> > > I have set the "FingerScrollable" property to true for all these <br />> > > objects. But still I am not able to get kinetic scrolling working <br />> > > for the form. Am I missing something? <br />> > > ________________________________ <br />> > > Hotmail is redefining busy with tools for the New Busy. Get more <br />> > > from your inbox. See how. <br />> > > _______________________________________________ <br />> > > maemo-developers mailing list <br />> > > <a href="#" onclick="parent.mailclient.util.HelperUtil.executeClientFunction('openNewMail','maemo-developers@maemo.org');">maemo-developers@maemo.org</a> <br />> > > <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a> <br />> > > <br />> > > <br />> <br />> _________________________________________________________________ <br />> The New Busy is not the too busy. Combine all your e-mail accounts with <br />> Hotmail. <br />> <a href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4" target="_blank">http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4</a> <br /><br /><br /><br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1" target="_blank">Learn more.</a>                                            <br /><hr />Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2" target="_blank">See how.</a> </div></blockquote><p></p><br /></font><p></p><p> </p><div id="editor_signature"><p size="3" style="font-family:'Courier New';"> </p></div></body></html>