|
2009-11-12
, 11:57
|
|
Posts: 2,121 |
Thanked: 1,540 times |
Joined on Mar 2008
@ Oxford, UK
|
#2
|
The Following User Says Thank You to pelago For This Useful Post: | ||
|
2009-11-12
, 12:24
|
Posts: 654 |
Thanked: 664 times |
Joined on Feb 2009
@ Germany
|
#3
|
The Following User Says Thank You to conny For This Useful Post: | ||
|
2009-11-12
, 12:25
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#4
|
|
2009-11-12
, 12:30
|
Posts: 654 |
Thanked: 664 times |
Joined on Feb 2009
@ Germany
|
#5
|
|
2009-11-12
, 13:00
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#6
|
|
2009-11-12
, 13:10
|
Posts: 415 |
Thanked: 732 times |
Joined on Jan 2009
@ Finland
|
#7
|
|
2009-11-12
, 13:16
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#8
|
QApplication app(argc, argv); QMainWindow* window=new QMainWindow(); window->setCentralWidget(someWidget); window->show(); QMainWindow* window2=new QMainWindow(window); window2->show();
|
2009-11-13
, 12:49
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#9
|
|
2010-01-13
, 08:46
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#10
|
This works:
To create a stack window, we just need to pass another QMainWindow in constructor.Code:QApplication app(argc, argv); QMainWindow* window=new QMainWindow(); window->setCentralWidget(someWidget); window->show(); QMainWindow* window2=new QMainWindow(window); window2->show();
When we call window2->show() we will see transition effect.
window2 will be destroyed after pressing back button.
Thanks for your help
secondStackableWindow->setAttribute(Qt::WA_Maemo5StackedWindow);
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.
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!
Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google
Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!
Bored? Follow me