QT and back button
Hello,
I'm using Qt with C++ for Maemo 5. I would like to make similar effect as in, for example, contacts app: after clicking a button (contact), new pane appears (slides in) and the close button (right corner) changes to back button. Is it possible to do with Qt? If yes, what is the architecture of the panes? Any references or examples would be appreciated. |
Re: QT and back button
I believe in Maemo these are called "stacked windows". I don't know how to do this, but I've seen a video a couple of weeks ago demonstrating stacked windows in a Maemo 5 Qt app, so it must be possible.
|
Re: QT and back button
I think you should use the new "technology preview" Qt packages:
http://qt.nokia.com/developer/qt-for-maemo-developers http://maemo.org/packages/view/libqt4-maemo5-dev |
Re: QT and back button
I believe it is done automatically if you set the original QMainWindow as the parent to a new window, but I have not yet used it so take this with a grain of salt.
|
Re: QT and back button
Also have a look here:
http://wiki.maemo.org/Qt4_Hildon/Qt_Hildon_Widgets Those panes are originally called "HildonStackableWindows", not sure how to exactly use that with Qt. But from the wiki pages it looks like itīs possible... |
Re: QT and back button
Thanks for all those answers.
I have found this: http://qt.gitorious.org/+qt-maemo-de...7137ce63afe602 so I will give it a try. |
Re: QT and back button
there's QStackedLayout in Qt but i'm not sure if it shows the transition animations. I haven't tried it with Fremantle.
|
Re: QT and back button
This works:
Code:
QApplication app(argc, argv); When we call window2->show() we will see transition effect. window2 will be destroyed after pressing back button. Thanks for your help :) |
Re: QT and back button
Hi,
I've added some information to the Developer FAQ about Qt. Some Maemo-specific links where to find documentation. Cheers Daniel |
Re: QT and back button
Quote:
wiki updated. Code:
secondStackableWindow->setAttribute(Qt::WA_Maemo5StackedWindow); |
All times are GMT. The time now is 16:52. |
vBulletin® Version 3.8.8