PDA

View Full Version : Arrange QtoolButton in QToolBar ?



Nfrancisj
12th June 2019, 07:27
Hello,

I'm wondering if there is a way to re-arrange the QToolButton in a QToolbar?
I have a QToolbutton at the end of my ToolBar, and I would like to move it up. (see image)

I was searching the forums and found .takeAt() and insertWidget() for layouts, I'm looking for something similar for ToolButtons

Thanks!

Nick

13156

anda_skoa
12th June 2019, 08:21
You could try

1) call actions() to retrieve a list of the actions "behind" the buttons
2) call clear()
2) modify the list
3) call addActions() with the modified list

Cheers,
_