PDA

View Full Version : how to hide a program with only toolbar left?



berlinud
27th August 2010, 16:52
the program contains a QHBoxLayout as a CentralWidget of QMainWindow,
inside the layout is a QTableWidget.

I want to hide all the things except for the toolbar,

I used


QMainWindow->hide();

but the result is weird:

the QTableWidget inside the QMainWindow vanished,leaving the original area of QTableWidget blank(only blank,it is still there),

what code do I need to hide this blank area?

berlinud
30th August 2010, 01:58
make it up~