[PyQt] python designer plugins cause strange bugs to buttonBoxes

Lev Shamardin shamardin at gmail.com
Thu Feb 5 09:57:10 GMT 2009


Hi all,

Just discovered a very odd thing: loading Qt4 designer with any plugin
written in python breaks buttonBox control in an odd way, it sets
standardButtons property to the "NoButton" value, and it is impossible
to change this value to anything reasonable.

This was tested on Fedora 10 box with PyQt4-4.4.4. Steps to reproduce
the problem:
1. Launch designer-qt4, create a dialog with buttons bottom. Press
Ctrl-R to preview the dialog. You should see a normal dialog with
buttons Ok and Cancel.
2. Launch "plugins.py" from PyQt4-devel-4.4.4/examples/designer/plugins
3. Create a dialog with buttons bottom. Press Ctrl-R to preview the
dialog. Discover that the buttons are missing.
4. Close the preview, select the buttonBox, find standardButtons in
properties, try to change anything. It does not work.

Can anyone else reproduce this bug? Are there any known workarounds?

-- 
Lev.


More information about the PyQt mailing list