View Single Post
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#8
Originally Posted by Figa View Post
THX , but i know it. I don't know why it doesn't work. Please look on my code.
QMainWindow * window = new QMainWindow();
window->show();
QMainWindow * main = new QMainWindow(window);
main->show();

is the same as

Window window;
window.show();
Main main(&window);
main.show();
Well, without the proper attribute is normal that this doesn't work, please read the link that I posted above everything is explained there.

Try this:

QMainWindow * window = new QMainWindow();
window->show();
QMainWindow * main = new QMainWindow(window);
main->setAttribute(Qt::WA_Maemo5StackedWindow);
main->show();
__________________
Valério Valério
www.valeriovalerio.org