
WindowMenu
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A simple Window-Menu, tested with Qt4.4
Features:
- Shows a menu with all ToolBars.
- Shows a menu with all Dock-Widgets
- Lists up to 10 Sub-Windows of a QMdiArea
- Shows a dialog where you can access all widgets of a QMdiArea, if there are more then 10 Sub-Windows
- The user can close, rearrange and traverse the Sub-Windows of a QMidArea
- Translation is prepared with QObject::tr()
Best usage is inside a QMainWindow
#include "windowmenu.h"
class MyMainWindow : public QMainWindow {
...
setCentralWidget(new QMdiArea(this));
WindowMenu *menu=new WindowMenu(tr("&Windows"), this);
menuBar()->addMenu(menu);
...
}
Please login or register to add a comment or rating