Re: [PyQt] Moving button to the right side edge of a QToolBar

2009-05-11 Thread Peter Georges
That works perfectly Thanks! On 12/05/09 01:02, Chris M wrote: Try; spacer = QWidget() spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) toolBar.addWidget(spacer) # Then your button to be right-aligned Taken from http://www.ffuts.org/blog/right-aligning-a-button-in-a-qtoolbar

Re: [PyQt] Moving button to the right side edge of a QToolBar

2009-05-11 Thread Chris M
Try; spacer = QWidget() spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) toolBar.addWidget(spacer) # Then your button to be right-aligned Taken from http://www.ffuts.org/blog/right-aligning-a-button-in-a-qtoolbar/ 2009/5/11 Peter Georges : > I have a QToolBar in my application

[PyQt] Moving button to the right side edge of a QToolBar

2009-05-10 Thread Peter Georges
I have a QToolBar in my application and I want the last button i add to the toolbar to be positioned to the right. What is the ideal way to do that? Is there some sort of way I can add a 'stretching' widget to push the last button all the way over? Cheers __