![]() |
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:
|
Re: Why it isn't stackable window?
Yes, I am.
|
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
I am not sure if i use qt4.6 How Can i check this? This is the error.
'WA_Maemo5StackedWindow' is not a member of 'Qt' |
Re: Why it isn't stackable window?
Quote:
#include <QtMaemo5> |
Re: Why it isn't stackable window?
I can't include it.
|
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
Thank you. I have a eclipse. What upgrade to qt 4.6?
|
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
I installed qtlib4-maemo5-dev and I get this error 'WA_Maemo5StackedWindow' is not a member of 'Qt' in eclipse. What is wrong?
|
Re: Why it isn't stackable window?
Quote:
You also need, at least, 'qtlib4-maemo5-maemo5', try also to compile your app directly under scratchbox to see if the problem is in your esbox setup, don't forget to use qmake under '/opt/qt4-maemo5/bin/qmake' since you're running Qt 4.6. |
Re: Why it isn't stackable window?
QWidget is not typically meant to be a "full window". In 4.5 you will have to use a QMainWindow to get proper stacking. Make sure you either inherit from it, or use your QWidget derived class with one (via setCentralWidget()).
|
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
Can you help me with settings Qt 4.6 in esbox and eclipse,please?
|
Re: Why it isn't stackable window?
Quote:
|
Re: Why it isn't stackable window?
Thank you for everything. Can I ask for you? What are you using for development?
|
Re: Why it isn't stackable window?
Quote:
[1] - http://wiki.maemo.org/MADDE |
Re: Why it isn't stackable window?
THX i have qt creator how set a scratchbox for build?
|
Re: Why it isn't stackable window?
Quote:
What I do is, I use Qt Creator as a IDE only, and keep a scratchbox console open all the time where I compile the program(make) and run it. Usually I test the programs directly in the device that is connected using ssh. Is not a simple setup, but everyone have personal preferences ;) |
Re: Why it isn't stackable window?
This worked for me. But I didn't need this line:
Code:
win2->setAttribute(Qt::WA_Maemo5StackedWindow); |
All times are GMT. The time now is 00:21. |
vBulletin® Version 3.8.8