PDA

View Full Version : May I hide the central widget in the main window ?



kichi
14th November 2010, 19:38
Hello.:)

I'm making a small program, which has a main window.
The main window has a central widget and two dock widgets.

On Linux, I tried to hide the central widget with hide(), remained the dock widgets was showing.
The program looked like running well.

May I hide the central widget in the main window ?


In the Qt reference manual, I found the following description.

"Note: Creating a main window without a central widget is not supported.
You must have a central widget even if it is just a placeholder."


I'm sorry, in poor English.