Phil Thompson wrote:
On Tue, 09 Sep 2008 14:57:37 +0200, Marco Fabiani <[EMAIL PROTECTED]> wrote:
Hello,
I discovered a strange behavior in Qt Designer's Property Editor when
using custom widget plugins written using PyQt (for example, starting
the example "plugins.py" in the PyQt examples collection
designer/plugins).
If I create a new dialog with a QDialogButtonBox, the buttons OK and
Cancel appear. But looking at the Property Editor, the standardButtons
field says "NoButton". Now if I try to add a new button, the
standardButton field remains set to "NoButton", the noButton field
becomes checked and grayed out, and it is possible to select only one of
the standard buttons at a time. The same problem appears if I have a
dockWidget: the NoDockWidgetFeatures is checked and gray, and I can't
select more than one feature at a time. I can provide screen shots if
needed.
If I run Designer without any python plugins. I run Python 2.5, Qt 4.4.1
and PyQt 4.4.3 on OSX 10.5.
Could it be a bug in the python plugin?
You haven't mentioned any custom widget - so the python plugin isn't being
used.
Sorry, that was I mistake: if I run with python custom widgets (the
plugin example), I experience the problem. If I run without any python
custom widgets (so I guess the python plugin is not being used),
everything works fine.
If I start Designer (from the plugins.py example) and create a default
dialog then the standard button field contains OK|Cancel as expected.
The dialog is created as expected, but if I try to add another default
button (say "Apply" button), the other two buttons disappear. This can
be seen in the Property Editor for the QDialogButtonBox, where I can
only select one button at a time (and the "NoButton" field is checked
and unactivated).
I was just wondering if this happens only to me.
Marco
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt