qt5base-lts/examples/widgets/mainwindows
Friedemann Kleint bdbd26a3b7 Polish the widgets/mainwindows/mdi example.
- Introduce Qt 5 signals & slot syntax and remove the QSignalMapper
  used to map the triggered() signals of the per-MDI-child actions
  of the window menu to the activation slot by a functor to demonstrate
  the flexibility of the new connection syntax (the functor can
  in turn be replaced by a lambda expression once we have C++ 11).
- Merge MainWindow::createMenus()/createQToolBars()
  into MainWindow::createActions(), removing the need
  to store the actions as member variables.
  Use QMenu::addAction() for brevity.
- Use QIcon::fromTheme() to obtain system icons and use
  resource icons as fallback.
- Rewrite settings code to use
  QWidget::saveGeometry(), Widget::restoreGeometry() since
  saving size and position does not work well with multiple
  screens. Query the available size when determining
  the initial size instead of using hard-coded values
  for High-DPI screens.
- Fix minor issues in code, use multi-argument version
  of QString::arg(), QDir::toNativeSeparators() to
  present file paths to the user and static method invocation.

Change-Id: I3d5078ddbe3cb4eba65e188430ba3580cecb2c79
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2015-07-20 22:07:13 +00:00
..
application Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00
dockwidgets Polish the examples/widgets/dockwidgets example. 2015-07-20 13:25:06 +00:00
mainwindow Polish the examples/widgets/mainwindows example. 2015-07-17 14:15:11 +00:00
mdi Polish the widgets/mainwindows/mdi example. 2015-07-20 22:07:13 +00:00
menus Port examples/widgets/mainwindows/menus to new connection syntax. 2015-07-20 13:24:59 +00:00
recentfiles Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
sdi Polish the widgets/mainwindows/sdi example. 2015-07-17 14:14:56 +00:00
mainwindows.pro remove QT+=widgets from SUBDIRS projects 2012-12-17 14:08:17 +01:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00

All the standard features of application main windows are provided by Qt.

Main windows can have pull down menus, tool bars, and dock windows. These
separate forms of user input are unified in an integrated action system that
also supports keyboard shortcuts and accelerator keys in menu items.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.