[PyQt] Accessing PyQt designer

Carl Wolff carl at wolff-online.nl
Tue Oct 13 15:41:28 BST 2015


Hello,

can somebody help me with adding functionality to designer with python,
preferably by some code examples?

I already succeeded to create custom python widgets and to expose them to
designer: so that is not a problem.

But the documentation states also the following code in
http://doc.qt.io/qt-4.8/qdesignerformwindowmanagerinterface.html , but for
me it is totally unclear how to proceed from here with Python.

QDesignerFormWindowManagerInterface
<http://doc.qt.io/qt-4.8/qdesignerformwindowmanagerinterface.html#QDesignerFormWindowManagerInterface>
*manager = 0;
        QDesignerFormWindowInterface
<http://doc.qt.io/qt-4.8/qdesignerformwindowinterface.html>
*formWindow = 0;

        manager = formEditor->formWindowManager();
        formWindow = manager->formWindow
<http://doc.qt.io/qt-4.8/qdesignerformwindowmanagerinterface.html#formWindow>(0);

        manager->setActiveFormWindow
<http://doc.qt.io/qt-4.8/qdesignerformwindowmanagerinterface.html#setActiveFormWindow>(formWindow);


Thanks in advance,
Carl.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20151013/b722bf1f/attachment.html>


More information about the PyQt mailing list