QDialog without Title Bar
Any way to implement/derive a QDialog or QMainWindow without a title bar, i.e. no icon, no title, no [?] or [x].
I need the dialog to be resizable and movable by the user, so
Code:
setWindowFlags( Qt::FramelessWindowHint );
// or
setWindowFlags( Qt::SplashScreen );
don't do the trick.
Thx for any hints.
Re: QDialog without Title Bar
Set the frameless window hint and implement moving and resizing the dialog yourself.
Re: QDialog without Title Bar
You can look at the code here, I didn't tried but surely can give hints on how do it :
http://qt-apps.org/content/show.php/...content=138161
Or here for a more direct answer I think :
https://github.com/alexcastano/borde.../MainFrame.cpp
Re: QDialog without Title Bar
If anyone is paying attention, NcFramelessHelper worked great.
I didn't actually need a frame-less window, yet I got what I needed with:
Code:
mFh = new NcFramelessHelper;
mFh->setWidgetMovable( true );
mFh->setWidgetResizable( true );
mFh->activateOn( this );
setWindowFlags( Qt::CustomizeWindowHint ); // This along with NcFramelessHelper allows no title bar yet
// a dialog frame and the dialog is movable and resizable