[Qt-interest] setLayout for QMainWindow
Steven Woody
narkewoody at gmail.com
Tue Jan 20 08:52:57 CET 2009
On Tue, Jan 20, 2009 at 3:12 PM, J-P Nurmi <jpnurmi at gmail.com> wrote:
> On Tue, Jan 20, 2009 at 5:21 AM, Steven Woody <narkewoody at gmail.com> wrote:
>>
>> Hi,
>>
>> Does it make any sense if I call setLayout() member for a QMainWindow?
>> Thanks.
>>
>>
>
> Hi,
>
> You're on the right track. QMainWindow has its own private layout to handle
> toolbars, dock widgets, status bar etc. so it doesn't make sense, indeed.
> The main window layout is described in QMainWindow documentation.
>
Thank you! And, I am thinking that if QMainWindow can override the
setLayout() method and raise a exception when it is invoked, thinks
will be more clear and less confusing.
More information about the Qt-interest-old
mailing list