Hello!
I've wrote simple program that have main window and dialog window which can by open by clicking a button. Code of that dialog window looks like this:
Code:
#include <QGridLayout> #include <QPushButton> #include <QIcon> #include "pomiary.h" { setupUI(); } void Pomiary::setupUI() { setModal(true); setLayout(PomiaryLayout); button->setFixedSize(60, 60); PomiaryLayout->addWidget(button,0,0,Qt::AlignHCenter); }
and when I open my application i don't have title bar on dialog window so I can't close it. I've tried to use setWindowFlags() but with no result. Only If I delete 'setGeometry()' window has title bar but is very small, and I want specific size. What I'm doing wrong?
thanks in advance
best regards
Tomasz