Where is Qt designer app on Mac + Anaconda?

后端 未结 8 949
小蘑菇
小蘑菇 2020-12-28 20:02

I am trying to find Qt designer app on Mac. I installed anaconda package and conda reports that qt, sip, and pyqt are installed. Still I couldn\'t find the designer app in a

相关标签:
8条回答
  • 2020-12-28 20:30

    You can try open -a Designer from your terminal to launch Qt Designer that comes with Anaconda (version 4.x).

    If you have Qt5.x, you may want to launch a newer version of Designer by open -a Designer-qt5.

    0 讨论(0)
  • 2020-12-28 20:30

    I downloaded the latest Qt4 version for Mac (and SIP), from https://riverbankcomputing.com/software/pyqt/download/ python configure.py make && make install and my qt designer is here. /usr/local/Cellar/qt/4.8.7/Designer.app

    Hope it helps!

    0 讨论(0)
  • 2020-12-28 20:32

    I expect it's Qt Creator that you should be looking for. Note here: -

    the integration of Qt Designer under Qt Creator is first mentioned at least as early as Qt 4.7 (ca. late 2011)

    Qt Creator includes a code editor and integrates Qt Designer for designing and building graphical user interfaces (GUIs) from Qt widgets.

    If it's not in your distribution, you can download it separately here.

    0 讨论(0)
  • 2020-12-28 20:35

    Qt has a dmg installer for Mac which includes everything.

    https://www.qt.io/download-qt-installer

    0 讨论(0)
  • 2020-12-28 20:41

    OSX Yosemite 10.10.5
    Qt 5.6
    QtCreator 3.6.1

    QtDesigner is part of my QtCreator. To use QtDesigner:

    1. Launch QtCreator, and from the menu bar (outside QtCreator), click on: File>New File or Project

    2. You will be presented with a New File or Project dialog window. In the Files And Classes section, select Qt. In the middle pane, select QtDesigner Form. Then click on the Choose button in the lower right corner.

    3. You will be presented with a QtDesigner Form dialog window. Then you can select Main Window or Dialog with Buttons Bottom, etc. Then click on the Continue button in the lower right corner.

    4. In the Location dialog window, use a name like mainwindow1.ui, and for the path you might want to step aside and create a directory called forms, e.g. $ mkdir /Users/7stud/qt_projects/forms, then enter that as the path.

    5. Enter any other details and click on Done. That will land you in QtCreator with the Design button selected (which I guess means you are in QtDesigner), and you will be able to drag and drop widgets onto your window.

    6. To convert the .ui file to a .py file that you can import into your python program:

      $ pyuic5 mainwindow1.ui -o mainwindow1.py

      -o => output file (default is stdout)

    That command converts the .ui file mainwindow1.ui to a .py file named mainwindow1.py.

    To re-open the file: File>Open File or Project. If you select a file with a .ui extension, it will be opened with QtCreator's Design button pre-selected, i.e. you will be inside QtDesigner.

    0 讨论(0)
  • 2020-12-28 20:41

    I can't answer you question definitively as I don't have OSX installed anywhere, but perhaps I can help lead you in the right direction.

    1) you are going to want to be looking for Designer, not QT Creator, as Designer is what comes bundled with PyQt4 (PyQt4 is what Anaconda comes packaged with)

    2) in linux when you install Anaconda 2.1 to the default location, designer is going to be placed in home/user_name/anaconda/bin/

    3) typing 'designer' from a terminal launches designer in linux, so you may not have to bother searching around for it.

    Hopefully there is some consistency between linux and osx (windows designer is located in \Anaconda\Lib\site-packages\PyQt4).

    Best of luck.

    0 讨论(0)
提交回复
热议问题