Embedding a runtime graph in Qt3 designer generated UI

Phil Thompson phil at riverbankcomputing.co.uk
Mon Aug 8 03:21:32 EDT 2005


> Hi
>
> Two questions :
>
> 1. Is it possible to use an import command in a qt3 designer code ? (I
> know
> that it is possible to write python inside the braces -- but is it
> possible
> to use an import command for some rather large libraries I wrote that I
> need to access ?).

You can include import statements in Designer's comment dialog by
prefixing them with "Python: ". This is covered in the PyQt documentation.

> 2. In the same vein, how does one embed a runtime plot in a qt3 UI ? It
> will
> need to be a python solution since I am using python libraries to acquire
> the data.

Have a look at PyQwt which is a set of Python bindings for the Qt-based
Qwt plotting library.

Phil




More information about the Python-list mailing list