[PyQt] QT Designer for Custom Widgets.

objectref objectref at yahoo.gr
Wed Apr 16 14:58:31 BST 2008


Xmmm...i tried what you said, the PyQt examples (examples/designer/plugins).
When I click on "Launch", a message box informs me that "This example will
start Qt Designer when you click the OK button..." but this never happens.
It also says that after that,PyQt examples are going to be found in their
own group in Qt Designer, which also never happens.

A detail: I have installed (Win XP system) latest version of PyQt only, not
QT itself.



-----Original Message-----
From: pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of Ulrich Berning
Sent: Wednesday, April 16, 2008 4:13 PM
To: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] QT Designer for Custom Widgets.

objectref wrote:

>Hi,
>
>I am reading Mark Summerfields' "Rapid Gui Programming with Python and Qt".
>Until the chapter I am now, I saw that we can build a new custom widget by
>subclassing an existing one and adding our own stuff. All this by code.
>
>Can I achieve the same thing by using solely the Qt Designer ?? I mean,
>let's say I want to make a widget that practically it is a collection of
>some other, predefined ones, and I want to define some properties on it in
a
>way that I can see these properties in Designer's Property Editor. Can I do
>this somehow ?
>
>Thanks for any help!
>
>Anthony
>  
>
Look at the PyQt examples in examples/designer/plugins of the PyQt 
sources. There you can see how to write plugins to use your own widget 
classes with Qt Designer.

Also take a look at the PyQt documentation:
"http://www.riverbankcomputing.com/static/Docs/PyQt4/pyqt4ref.html#writing-q
t-designer-plugins"

Ulli

_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt




More information about the PyQt mailing list