View Full Version : [QT3 + XP] How to avoid the windows title bar
incapacitant
16th February 2006, 22:03
Hi,
Simple question I guess.
I try to program a form (without designer) where the top status bar of windows would not be there. Up to me to code minimize, maximize and close buttons.
The idea is to use a background image without the usual top status bar of windows.
I tried to use the class QMainWindow but it shows this status bar.
Is there a way to avoid that ?
jacek
16th February 2006, 22:15
You could try passing "Qt::WStyle_Customise | Qt::WStyle_Splash" flags to the widget constructor.
incapacitant
16th February 2006, 22:21
I get the following compile error :
29 C:\root\Dev-Cpp\qt-3\My Examples QT3\sms\application.cpp `WStyle_Customise' is not a member of `Qt'
Maybe this is a QT4 feature ?
Code:
ApplicationWindow::ApplicationWindow()
: QMainWindow( 0, "example application main window", Qt::WStyle_Customise | Qt::WStyle_Splash | WDestructiveClose | WGroupLeader )
{
}
sorry i don't know how to embed code in the post
jacek
16th February 2006, 22:29
Maybe this is a QT4 feature ?
No, just a typo --- it should be Qt::WStyle_Customize.
i don't know how to embed code in the post
You can use [ code ] tags. Like this:
// some code
incapacitant
16th February 2006, 22:33
it works fine, thanks
for embedding code in the post it is not clear still.
should i enter
Qt code:
some code?
jacek
16th February 2006, 22:43
for embedding code in the post it is not clear still.
should i enter
Qt code:
some code?
Type: [ code ] some code [/ code ] (without spaces in []) or click "#" above the text box.
Powered by vBulletin® Version 4.2.5 Copyright © 2023 vBulletin Solutions Inc. All rights reserved.