Top right align QToolBar
-
Hi,
I want to add a movable toolbar on the top right of my screen. The only tricks I saw use an empty widget with an extensive policy. The problem of that is the grab action.
The expected result is a grab widget just on the left of my toolbar.
Is there a good solution for that?
regards,
robin -
@Robinsondesbois Hi,friend. Welcome.
You can use a
QWidget
to add someQTollButton
s asQToolBar
. But this way cann't let the bar move by mouse inQMainWindow
.Becuase in different OS, Win and Mac, we should use
QToolBar in Win
andQMacToolBar in Mac
.So, I used
QWidget
to add someQToolButton
. InQWidget
we can set any layout. -
Hi!
Thank you for the reply !Put a QWidget with a correct layout into the Qtoolbar don't correct my problem because the grab item still show on the left of the toolbar (not just near the first QToolButton).
regards