<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
That works perfectly<br>
<br>
Thanks!<br>
<br>
On 12/05/09 01:02, Chris M wrote:
<blockquote
cite="mid:e5dbe5a50905110802l5ba5bf81qe9d50b8392ca49d9@mail.gmail.com"
type="cite">
<pre wrap="">Try;
spacer = QWidget()
spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
toolBar.addWidget(spacer)
# Then your button to be right-aligned
Taken from <a class="moz-txt-link-freetext" href="http://www.ffuts.org/blog/right-aligning-a-button-in-a-qtoolbar/">http://www.ffuts.org/blog/right-aligning-a-button-in-a-qtoolbar/</a>
2009/5/11 Peter Georges <a class="moz-txt-link-rfc2396E" href="mailto:peterg@al.com.au"><peterg@al.com.au></a>:
</pre>
<blockquote type="cite">
<pre wrap="">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
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a>
</pre>
</blockquote>
<br>
</body>
</html>