Doc: explain how to create a QToolBar
Surprisingly, this wasn't mentioned in the detailed description at all. Users would need to click on the link for the example in the "See also" section and then read through it to find any mention of how tool bars are created. Pick-to: 6.2 6.5 6.6 Change-Id: I9db23b475009072f34defab38b6d6200a45f2f35 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
4f9c66131d
commit
14d10c632b
@ -389,6 +389,10 @@ void QToolBarPrivate::plug(const QRect &r)
|
||||
\ingroup mainwindow-classes
|
||||
\inmodule QtWidgets
|
||||
|
||||
A toolbar is typically created by calling
|
||||
\l QMainWindow::addToolBar(const QString &title), but it can also
|
||||
be added as the first widget in a QVBoxLayout, for example.
|
||||
|
||||
Toolbar buttons are added by adding \e actions, using addAction()
|
||||
or insertAction(). Groups of buttons can be separated using
|
||||
addSeparator() or insertSeparator(). If a toolbar button is not
|
||||
|
Loading…
Reference in New Issue
Block a user