Which exact version of Qt on which platform? I can't reproduce the problem. I tried with following minimalistic code but the window is shown maximized. Does this not work for you?
#include <QtGui>
int main(int argc, char* argv[])
{
label
->setPixmap
(QPixmap("test.png"));
layout->addWidget(label);
window.setLayout(layout);
window.showMaximized();
return app.exec();
}
#include <QtGui>
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QWidget window;
QLabel* label = new QLabel;
label->setPixmap(QPixmap("test.png"));
QHBoxLayout* layout = new QHBoxLayout;
layout->addWidget(label);
window.setLayout(layout);
window.showMaximized();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks