c++ - I can't seem to add a close button using Qt::WindowFlags -
i have following code called when insert qmdisubwindow qmdiarea:
qt::windowflags flags; flags = qt::widget | qt::windowminimizebuttonhint | qt::windowtitlehint; if(closeable) { qdebug("window closeable. %x", qt::windowclosebuttonhint); flags |= qt::windowclosebuttonhint; }
for reason, when closeable true, closebutton won't display on widget's titlebar.
this call insert widget qmdiarea.
mdi->addsubwindow(widget, flags);
any suggestions?
i found playing around window flags example included sdk lot of when trying flags correct.
c:\qtsdk\examples\4.7\widgets\windowflags\
Comments
Post a Comment