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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -