pythonpyqt4pysideqt-designercustom-widgets

Custom Qt Widgets with python for Qt Designer


I am trying to write a custom widget for the Qt Designer using only Python. I was following a couple of tutorials I found online but none of them were working or anything close to what I would call to be a minimum working example.

So my questions are:

  1. What steps are involved to make a a custom widget appear in the Widget Box of Qt Designer?
  2. If you can spare the time: Please provide a minimum working example (like a widget with a label in it saying "A truly minimal working Qt custom widget example").
  3. Or is it maybe not possible at all to include a custom widget using only python?

Solution

  • I found this article to be your answer: https://doc.qt.io/archives/qq/qq26-pyqtdesigner.html

    But, I haven't been able to install it in Qt Designer though :D