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
Not sure if there is a 'cleaner' solution but overriding the event is
fairly simple, for example;
class MyTreeWidget(QTreeWidget):
def __init__(self, parent = None):
super(MyTreeWidget, self).__init__(parent)
def resizeEvent(self, event):
width = event.size().width()
Not sure if this is a qt, pyqt (or something in my os environment)
problem, but...
I have a QDateEdit widget which is mapped to a database date field.
The issue I have is ...
I can tab into the widget, ie into the 'dd' of 'dd/MM/' but cannot
tab onto the 'MM' and from MM cannot tab to ''.
Adonay,
Glad to hear you have solved the issue :-D
The problem you give of the window disappearing or not appearing at
all is because the variable 'other' (or a,b,c) goes out of scope when
the _init_ method returns. You need to keep a reference to the window
object (which your new code does by us
ly Im asking for a sanity
> check :)
>
>Regards
>
>Lee
-Original Message-
From: Chris M
> Lee, I'm probably missing your point, but a modal dialog just blocks
> access to the other windows/dialogs in your application until it
> exits. With no other windows I don