Wednesday, July 08, 2009

Showing/Hiding Maximize/Minimize buttons on QMdiSubWindow

The documentation for both the API and an example usage is great, but I thought I'd post this Blog Entry in any case because when you go Googling for a problem solution the more chances of finding the answer the better.



Update: Some code text for copy and pasting

QMdiSubWindow *win = new QMdiSubWindow;
win ->setWidget(child);
win ->setWindowTitle("Black Scholes");

Qt::WindowFlags flags;
flags = Qt::WindowMinimizeButtonHint;
win->setWindowFlags( flags );

Matt

No comments: