Python Forum
How to Integrate PyQt4 Custom Widget with Qt Designer
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Integrate PyQt4 Custom Widget with Qt Designer
#1
Hi All,

I am quite new to PyQt and am having some difficulty integrating custom PyQt4 widgets into Qt Designer.

I'm using the analogclock.pyw custom widget example that ships with the PyQt4 installation (found in the PyQt4/examples/designer/plugins/widgets folder), and analogclockplugin.py plugin file example (found in the PyQt4/examples/designer/plugins/python folder).

From the following articles:
https://wiki.python.org/moin/PyQt/Using_...t_Designer
http://pyqt.sourceforge.net/Docs/PyQt4/designer.html
https://doc.qt.io/archives/qq/qq26-pyqtd...ngsinplace


I am under the impression that I must put the plugin file either in the PyQt4\plugins\designer\python default directory, or in a directory as specified in PYQTDESIGNERPATH path variable, so I put the default directory into this path variable as well. I then placed both the widget and plugin python code into this directory and start up designer.exe, but I cannot see the analog clock widget in the widget box. I also see no attempt (via Help -> About Plugins) of loading the plugin at all.
Reply
#2
There is another bit of information that might be useful. In the Plugin Information dialog box within Qt Designer, it says that one of the failed plugins are pyqt4.dll with the following error message: "Cannot load library C:/.../PyQt4/plugins/designer/pyqt4.dll: The specified module could not be found.

I am wondering if this plugin may be required to load successfully for custom widgets written in python to be integrated in the first place?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QT Designer Krissstian 4 1,640 May-26-2022, 09:45 AM
Last Post: Krissstian
  Qt Designer : help document viewer error. davediamond 2 1,543 Apr-14-2022, 10:38 AM
Last Post: davediamond
  GUI programming PyQt 5 + Qt Designer flash77 9 2,642 Mar-19-2022, 10:31 AM
Last Post: flash77
  [PyQt] QT5 Designer Drawing greenhorn1 1 2,512 Dec-30-2021, 05:12 PM
Last Post: deanhystad
  Installed Designer - Helpf Files for "assistant" are missing Valmont 0 1,987 Mar-22-2021, 11:09 AM
Last Post: Valmont
  Using a GUI Designer vs. hard coding 357mag 9 5,963 Feb-21-2021, 06:43 PM
Last Post: kkaur
  Attempting to use Qt Designer. thewolf 17 5,979 Feb-17-2021, 12:03 AM
Last Post: thewolf
  [PyGUI] help code python QT Designer yan_mhb 0 1,888 Aug-12-2020, 09:32 AM
Last Post: yan_mhb
  [Tkinter] Tkinter custom widget styling and creating custom theme karolp 6 4,751 May-06-2020, 06:11 PM
Last Post: karolp
  [PyQt] dynamically resize custom widget fill remaining space ironcthulhu 1 11,215 Dec-31-2019, 09:45 PM
Last Post: Denni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020