Design a window without a caption bar - QT Designer -
how can declare window without caption when use qt designer?
if you're looking remove window title, easiest way set window flags in widget's constructor, smth this:
mainwindow::mainwindow(qwidget *parent) : qmainwindow(parent, qt::framelesswindowhint), //<-- remove title bar ui(new ui::mainwindow) { ui->setupui(this); ...
or call
qt::windowflags flags = qt::customizewindowhint; setwindowflags(flags);
more details on window types here: enum qt::windowtype flags qt::windowflags
hope helps, regards
Comments
Post a Comment