Nokia N8 showFullScreen() don't work
-
Write your own class from QDialog.
@#include <QDialog>
namespace Ui {
class TestDialog;
}class TestDialog : public QDialog
{
Q_OBJECTpublic:
explicit TestDialog(QWidget *parent = 0);
~TestDialog();private:
Ui::TestDialog *ui;
};@@TestDialog::TestDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::TestDialog)
{
ui->setupUi(this);
}TestDialog::~TestDialog()
{
delete ui;
}
@ -
main.cpp:
@int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QDialog dlg;
/MainWindow w;/
dlg.showFullScreen();
return a.exec();
}
@mainwindow.cpp:
@#include "QDialog"
MainWindow::MainWindow(QWidget *parent) :
QDialog(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);}
MainWindow::~MainWindow()
{
delete ui;}@
mainwindow.h:
@#include <QDialog>namespace Ui {
class MainWindow;
}class MainWindow : public QDialog
{
Q_OBJECTpublic:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();private:
Ui::MainWindow *ui;private slots:
.
.
.
};@ -
Well, based in the code you posted, you don't instantiate-and-show your MainWindow in main.cpp, just a standard QDialog :-)
-
-
ok, i tried around an found out that its not a problem with showFullscreen();.
Its seems to be a problem with the images i have used.
i removed all my .bmp files and the app works.
now i dont use images, but it looks bad, so what can i use therefor now?
or is it maybe a problem in the .pro file?
the line RESOURCES: images.qrc ?? but it worked fine with symbian 5th.
any other idea? or other image types to use?
thanks!