Good day,

I try to deal with Qt, namely with PyQt and somehow there is absolutely no progress. Could you explain the following things to me:

  • What to use as an IDE? They write on the Internet, they say Qt Designer is needed, which needs to be used through Qt Creator and there’s a stupor here, since I’m not finding the first place anywhere. What is Qt Designer anyway?

  • Suppose I already write code in one of the environments, will it be possible to write in python-e and then run it? Or does it all boil down to the fact that I torture .ui files and run it through the console?

  • if I work under Ubuntu, then how to start all this obscurantism? I put PyQt in pip, it seems like Qt Designer should have been (at least they promised me so), it is not. I tried to install the package PyQt-tools, pip shouts that it can not deliver.

As a result, porridge in my head, I do not understand anything. Can any of you help this mess?

  • Try to be limited in one question, one problem. If you don't know where to start, start with the introductory tutorials. There will be a specific problem, ask. - jfs
  • one
    @jfs just accumulated so much that the brain explodes. But I will take this opportunity to ask you: What is Qt Designer like? - Koshachok
  • 2
    @koshachok, designer is a WYSIWYG interface editor (* .ui-files), i.e. drawing windows. It is part of Qt. Very useful if there is no desire to create the entire UI from the code. And he and PyQt are in the standard turnips of all [reasonably] distributions. - Fat-Zer
  • Yes, you can not touch qtcreator or qtdisigner at all, install libraries through the pip and start as a normal python file, you can use the IDE to get used to what, in ubuntu, run from the terminal :) - Stefan Bloodhawk
  • one
    @StefanBloodhawk, I do not quite understand? Well, actually, I began to rivet the interface with handles, which is not very pleasant. So do you recommend using any editor for .ui? As IDE I use PyCharm. - Koshachok

2 answers 2

When choosing IDE, I stopped Wing Personal and geany. Maybe they will like you too. The main thing do not despair and move forward. And yet, you can not use any IDE at all and there is a kind of high in it. Believe the old man. Successes!

    Oh, my friend, I see you do not have enough suffering in life? In general, PyQt5 from sources is 2-3 days of pain only on Windows OS. There are many guides to build the latest version of PyQt5 on *nix systems. The only thing I remember is that when I last tried to pull out the sources of PyQt5 , the sourceforge was in shatdaun, as a result of which, in September of last year, I began to learn C++ and as a result I completely switched to pure Qt . I remember that it was necessary to have Qt installed of the appropriate version on the system, and when building Python bindings, specify the paths to the C++ version. By the way, Qt developers recently announced that they will release their own, the official version of Qt binding to Python , with preference and tech support. At the moment, if you don’t want to bother with PyQt5 from source, look at 25 degrees to the right and your gaze will fall on PySide , which, as I was told, is put several times easier (you don’t even have to make in the terminal =)). Regarding your Qt Designer 's question, this "tovarisch" is bundled with Qt (its C++ ' s hypostasis). Algorithm actions further like this:

     1) Открываешь Дизайнер и прототипируешь в нем интерфейс; 2) Сохраняешь в `.ui` файл; 3) Используешь утилиту `pyuic5` (идет в комплекте) 4) ??? 5) profit.run() 

    Then, according to the guides of all colors and colors (just type in PyQt5 in Google and you won't get very good guides) you use the output file in your application.

    Oh, and yes, about the IDE - for Python - only and only PyCharm , he seems to be unable to use the QML syntax, but you are still far from QML , as I understand it, so use boldly.

    • From experience, Qt didn’t like it at all. I put it for C ++ in the end, during the launch of the program not in the environment (launch release), showed only errors and could not find .lib files .. - Insider