[PyKDE] QWidget.setStyle Crashes
phil at riverbankcomputing.co.uk
Tue Jul 5 22:09:58 BST 2005
On Tuesday 05 July 2005 8:23 pm, Hihn, Jason wrote:
> I have a simple script (attached) which tries to set the style of a
> button. In both windows and linux, it crashes regardless of what style I
> try to use. (seg fault from setStyle(), no traceback info) I am trying
> to change the style of a few buttons for Windows XP users.
> In my real code the buttons are loaded from ui file, but neither works.
> My version PyQt version is 3.13 and Qt is 3.3.3
QWidget doesn't take ownership of the style - you need to keep a reference to
it to stop it being garbage collected.
More information about the PyQt