How to integrate PyQt designer in Eclipse?

sunny2016 picture sunny2016 · Aug 12, 2011 · Viewed 15.1k times · Source

I'm trying to integrate the pydev, pyqt, python and eclipse. Now the code can be runing without error. And I know to make the GUI in Qt Designer. and then modified it in Eclipse.

Now I want to integrate the Qt Designer of PyQt to Eclipse. Just like the Qt Eclipse Integration for C++. Use PyQt Designer in Eclipse. Can anybody teach me how to do it? Thanks very much!

BTW, I'm try to set the preference of qt project in Eclipse.

But when I add new qt version.I didn't know how to borrow the bin path. Because there is no bin path in PyQt.And also didn't have qmake,uic,rcc etc. the version name that I typed is PyQt-Py2.7-x64-gpl-4.8.5-1.exe. I borrow the include path like C:\python27\Lib\site-packages\PyQt4\Sib\PyQt4.

my OS is win7. Thanks for your answers! God bless you!

Answer

Macke picture Macke · Aug 12, 2011

The only way is to install the Qt Eclipse Integration, that way you can open ui files directly in eclipse.

But this does not work well with plugins and custom widgets, since that requires the exact same Qt version for the Eclipse integration and PyQt (and the same compiler flags..), and that may not be the case.

You could of course build the Qt Eclipse Integration yourself, if it works with the Qt version you're using with PyQt. (it's pre-built for 4.6.1, so it may or may not work with later Qt versions.)

What we've done is to tell Eclipse to open .ui files in Qt Designer outside of Eclipse. Not as nice, but it works with custom widget plugins, so it's a definite win for us.