How to configure Qt Designer to load PyQt widget in OSX?

I used to use PyQt on Windows extensively: its supplied PyQt includes PyQt Designer, which will load any PyQt Designer plugin developed using Python. This allows me to easily drag and drop these PyQt widgets into PyQt Designer.

I am not compiling PyQt from the source code, but what I get from this question seems to be that the source still does not include PyQt Designer. I am currently using Qt and PyQt using brew.

So, how do we configure Qt Designer (C ++ one) so that it can load any PyQt widgets?

0
source share
1 answer

The question you linked explains this very well. There is no such thing as PyQt Designer. There is only Qt Designer, which must be installed with Qt.

PyQt provides a plugin that allows custom widgets to be written in python for Qt Designer. This plugin is installed by default when PyQt is installed, unless it has been explicitly configured using the --no-designer-plugin option.

If you run Qt Designer and go to Help> About Plugins, you will see some python or pyqt plugin listed there on Mac OSX, I think the plugin should be installed in /Developer/Applications/Qt/plugins/designer/ ).

+2
source

All Articles