Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Designer Widget plugin using Python / PyQt5 on MacOS
Forum Update on Monday, May 27th 2025

Qt Designer Widget plugin using Python / PyQt5 on MacOS

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DanV
    wrote on 12 Jan 2019, 11:41 last edited by
    #1

    Hello,

    I am having difficulty creating my custom widgets in Qt Designer specifically on my Mac.

    On a windows machine using the winPython package, I can properly install the pyqt5.dll designer plugin, set PYQTDESIGNERPATH and see my custom plugins within Qt Designer.

    On my mac, I have downloaded the official Mac Qt package (5.9.2); I have build from source / installed SIP/PyQt5 (5.9.2); installed the resulting pyqt5.dylib plugin; I can see the pyqt5 plugin in my Designer "About Plugins" window... however, I have no idea how to get my widget plugins to show in Qt Designer?

    I export PYQTDESIGNERPATH, PYTHONPATH... from my command line env from where I launch Qt Creator / Designer, I can successfully execute the widget and plugin (ie. >>python widget.py)... so as far as I can tell my env is correct.... but nothing I do will show my custom widgets and I have no idea where to look for debugging info (I see nothing of relevance in console).

    Does anyone know how to get custom python widgets to show in Designer on a Mac? Any help would be much appreciated.

    Best,

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DanV
      wrote on 13 Jan 2019, 18:58 last edited by
      #3

      Thank you very much for your tip with QT_DEBUG_PLUGINS.

      In the end, I needed to debug pyqt5.dylib, which showed that I was missing PyQt5.sip. Once I installed it and then put it in my PYTHONPATH, things worked.

      1 Reply Last reply
      2
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 12 Jan 2019, 21:16 last edited by
        #2

        Hi and welcome to devnet,

        You should start Qt Creator from the command line with the QT_DEBUG_PLUGINS environment variable set to 1. This will allow you to check what happening.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • D Offline
          D Offline
          DanV
          wrote on 13 Jan 2019, 18:58 last edited by
          #3

          Thank you very much for your tip with QT_DEBUG_PLUGINS.

          In the end, I needed to debug pyqt5.dylib, which showed that I was missing PyQt5.sip. Once I installed it and then put it in my PYTHONPATH, things worked.

          1 Reply Last reply
          2
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 13 Jan 2019, 20:01 last edited by
            #4

            Glad you found out and thanks for sharing your findings !

            Happy coding :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply 28 Aug 2019, 01:30
            0
            • S SGaist
              13 Jan 2019, 20:01

              Glad you found out and thanks for sharing your findings !

              Happy coding :)

              A Offline
              A Offline
              anp405
              wrote on 28 Aug 2019, 01:30 last edited by
              #5

              @sgaist I'm having the same problem. But, I do not know how to debug the pyqt5.dylib file. can you explain? thanks

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved