PDA

View Full Version : non-decreasing width of the windows



fulbay
14th February 2011, 09:03
Hello,

I am trying to decrease the width of the window. However, the width cannot be smaller than 80 pxl even though the code forces it to be smaller than that value. I make the buttons on the window hidden, but it does not make use.

Is there a way to be able to implement a window having a small width (about 50 pxl width)?

Thanks...

nish
14th February 2011, 09:42
can you give a minimal compilable example reproducing the problem?

fulbay
14th February 2011, 09:50
Here it is:

QDialog *w = new QDialog(this);
w->setGeometry(1025, 200, 20, 254);
w->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
w->exec();

Thanks...