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. Change-Id: I9db23b475009072f34defab38b6d6200a45f2f35 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 14d10c632bad3346d404271535e6225d226afaa5) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a8b0b7798e
commit
7d042a0d37
@ -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…
x
Reference in New Issue
Block a user