<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Daniil,<br><br>Yes, both horizontal and vertical scrolling are working with your code. Now how do we get this to work in my case? :)<br><br>In my case, I have a scrollAreaWidgetContents (QWidget) 798 x 476 added to scrollArea. I can not resize this object using Qt creator. Even if I try to change the ui header file directly outside Qt creator, scrolling is not enabled. The group boxes which are added to scrollAreaWidgetContents have a combined height of more than 500.<br><br>I have no clue why this doesn't work, unless groupboxes and/or form layouts does not support scrolling.<br><br>~Sudheer<br><br>> Date: Tue, 8 Jun 2010 17:02:55 +0300<br>> Subject: Re: How to get kinetic scrolling working using Qt creator<br>> From: daniil.ivanov@gmail.com<br>> To: scifi.guy@hotmail.com<br>> CC: maemo-developers@maemo.org<br>> <br>> Hi Sudheer!<br>> <br>> Can you try this sample application<br>> <br>> #include <QtGui><br>> <br>> int main (int argc, char **argv)<br>> {<br>> QApplication app(argc, argv);<br>> <br>> QPixmap pixmap(1000, 1000);<br>> pixmap.fill(Qt::green);<br>> <br>> QLabel *label = new QLabel;<br>> label->setPixmap(pixmap);<br>> <br>> QScrollArea *scroll = new QScrollArea;<br>> scroll->setWidget(label);<br>> <br>> QMainWindow win;<br>> win.setCentralWidget(scroll);<br>> win.show();<br>> <br>> return app.exec();<br>> }<br>> <br>> Thanks, Daniil.<br>> <br>> On Tue, Jun 8, 2010 at 4:41 PM, Sudheer K. <scifi.guy@hotmail.com> wrote:<br>> > I think my previous message was not posted because of attachments. So,<br>> > posting again with the link to the source code in garage page.<br>> ><br>> > https://garage.maemo.org/plugins/ggit/browse.php/?p=vicar;a=tree;f=src/vicar-config/uis;h=3e2e395c649bd1d5d92490fb2e959b734c77ab1a;hb=af05031713c05157ffb173c51beb8dfb29a6e2f8<br>> ><br>> ><br>> > Ram - I am using Qt creator to create .ui file. I have attached the ui file<br>> > and the header file generated by Qt creator. Any changes I make to the<br>> > header file will be overwritten. So I want to use Qt creator only. But the<br>> > code generated by Qt creator is similar to yours. I am using the QScrollArea<br>> > as well.<br>> ><br>> > Felipe - I am adding two groupboxes to the scroll area. The combined height<br>> > for these two boxes is more than 500 which should trigger scrolling. But it<br>> > doesn't :(<br>> ><br>> > Daniil - I am not using dpkg at this moment because I am not creating a deb.<br>> > I am using qmake and make to create the executable and running on device<br>> > using run-standalone.sh.<br>> ><br>> > Output from qmake -v<br>> > QMake version 2.01a<br>> > Using Qt version 4.6.2 in /usr/lib<br>> ><br>> > Can you look the ui file or header file in the link and tell me what could<br>> > be wrong here? I have only one field that is going off the screen.<br>> ><br>> > ________________________________<br>> > The New Busy is not the old busy. Search, chat and e-mail from your inbox.<br>> > Get started.<br>> > _______________________________________________<br>> > maemo-developers mailing list<br>> > maemo-developers@maemo.org<br>> > https://lists.maemo.org/mailman/listinfo/maemo-developers<br>> ><br>> ><br>                                            <br /><hr />The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5' target='_new'>Get busy.</a></body>
</html>