[maemo-developers] How to get kinetic scrolling working using Qt creator
From: Daniil Ivanov daniil.ivanov at gmail.comDate: Tue Jun 8 17:02: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! Can you try this sample application #include <QtGui> int main (int argc, char **argv) { QApplication app(argc, argv); QPixmap pixmap(1000, 1000); pixmap.fill(Qt::green); QLabel *label = new QLabel; label->setPixmap(pixmap); QScrollArea *scroll = new QScrollArea; scroll->setWidget(label); QMainWindow win; win.setCentralWidget(scroll); win.show(); return app.exec(); } Thanks, Daniil. On Tue, Jun 8, 2010 at 4:41 PM, Sudheer K. <scifi.guy at hotmail.com> wrote: > I think my previous message was not posted because of attachments. So, > posting again with the link to the source code in garage page. > > https://garage.maemo.org/plugins/ggit/browse.php/?p=vicar;a=tree;f=src/vicar-config/uis;h=3e2e395c649bd1d5d92490fb2e959b734c77ab1a;hb=af05031713c05157ffb173c51beb8dfb29a6e2f8 > > > Ram - I am using Qt creator to create .ui file. I have attached the ui file > and the header file generated by Qt creator. Any changes I make to the > header file will be overwritten. So I want to use Qt creator only. But the > code generated by Qt creator is similar to yours. I am using the QScrollArea > as well. > > Felipe - I am adding two groupboxes to the scroll area. The combined height > for these two boxes is more than 500 which should trigger scrolling. But it > doesn't :( > > Daniil - I am not using dpkg at this moment because I am not creating a deb. > I am using qmake and make to create the executable and running on device > using run-standalone.sh. > > Output from qmake -v > QMake version 2.01a > Using Qt version 4.6.2 in /usr/lib > > Can you look the ui file or header file in the link and tell me what could > be wrong here? I have only one field that is going off the screen. > > ________________________________ > The New Busy is not the old busy. Search, chat and e-mail from your inbox. > Get started. > _______________________________________________ > maemo-developers mailing list > maemo-developers at maemo.org > https://lists.maemo.org/mailman/listinfo/maemo-developers > >
- 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 ]