![]() |
Why it isn't stackable window?
Hi I have following code:
Code:
class Window : public QWidget |
Re: Why it isn't stackable window?
You need to use this attribute in your parent window: "setAttribute(Qt::WA_Maemo5StackedWindow);"
Here is a simple example: http://qt.nokia.com/doc/qt-maemo-4.6...edwindows.html |
Re: Why it isn't stackable window?
I donīt. When I use.
QMainWindow * window = new QMainWindow(); window->show(); QMainWindow * main = new QMainWindow(window); main->show(); after main is stacked. Unfortunatelly I havenīt this parameter available. |
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
I have QT 4.5
|
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
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(); |
Re: Why it isn't stackable window?
Quote:
Try this: QMainWindow * window = new QMainWindow(); window->show(); QMainWindow * main = new QMainWindow(window); main->setAttribute(Qt::WA_Maemo5StackedWindow); main->show(); |
Re: Why it isn't stackable window?
I can't use this atribut because he is unavailable. This works.
QMainWindow * window = new QMainWindow(); window->show(); QMainWindow * main = new QMainWindow(window); main->show(); |
Re: Why it isn't stackable window?
Quote:
|
All times are GMT. The time now is 06:43. |
vBulletin® Version 3.8.8