You should set "Qt::CustomizeWindowHint" for window flags,
Qt Code:
setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);To copy to clipboard, switch view to plain text mode
You should set "Qt::CustomizeWindowHint" for window flags,
Qt Code:
setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint);To copy to clipboard, switch view to plain text mode
Last edited by srazi; 24th November 2010 at 12:57. Reason: spelling corrections
Nice idea, but sorry...
I've already checked it. on Linux ( SuSE 11.2) the minimize and maximize buttons ale still visible. The close button and context help button disappear.
Anyway thanks for the hint!
me![]()
hi,
In Debian its working. It should work with windowflags ,
try Qt::FramelessWindowHint and if u want to show a title ,add a QLabel and show ur title.
Or Try window styles, like motif,kde etc using QStyle
Thnks
Bala
Works well in Ubuntu 10.04
All buttons visible and all buttons enabled: setWindowFlags(Qt::Tool)
All buttons visible, close and maximize buttons enabled, minimize button disabled: setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowMaximizeButtonHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint)
All buttons visible, maximize button enabled, close and minimize disabled: setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowMaximizeButtonHint | Qt::CustomizeWindowHint)
Only close button is visible and enabled setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint)
No buttons in title bar: setWindowFlags(Qt::Tool | Qt::WindowTitleHint | Qt::WindowCloseButtonHint | Qt::CustomizeWindowHint)
If i am understanding this problem correctly then this works with Qt4 on Ubuntu 10.10
w.setWindowFlags(Qt::Tool);
add that line before w.show() in your main.cpp and all you will have is the close button
HTH
TpwUK![]()
Bookmarks