aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/doc/tutorials/pretutorial/whichide.rst
blob: ec005a188c92ca25dbdf7971d710ab931e847f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.. _whichide:

Which IDEs Are Compatible?
==========================

|project|, as any other Python module, can be used in any Python-compatible
IDE, but not all of them will provide extra functionality like Qt Creator does.

Besides writing files, there are some external steps you might want to perform
in order to help the development of your applications:

From a terminal:

* Generating a Python file from a ``.ui`` file:
  :command:`pyside6-uic -i form.ui -o ui_form.py`
* Generating a Python file from a ``.qrc`` file:
  :command:`pyside6-rcc -i resources.qrc -o rc_resources.py`
* Opening Qt Designer with the command :command:`pyside6-designer` to
  edit/create ``.ui`` files.

External add-ons/plugins from your favorite IDE might include configuration
steps to run these commands, or open external tools like Designer and
QtCreator.

QtCreator
---------

You can create new projects based on some basic templates that are currently
available in QtCreator. After selecting one, you will pass through some steps
where you can specify the details of the template, like the project name,
base Qt class to use for your interface, among others.

Here you can see an animation of the creation of a project:

.. image:: https://qt-wiki-uploads.s3.amazonaws.com/images/7/7c/Qtcreator.gif
    :alt: Qt Creator Animation

Visual Studio Code
------------------

Besides editing the code of your application, you can use external plugins to
enable more functionality, like this unofficial
`plugin <https://marketplace.visualstudio.com/items?itemName=seanwu.vscode-qt-for-python>`_
that you can install from VS Code while writing the following on the Quick Open Menu (``Ctrl+P``):
:command:`ext install seanwu.vscode-qt-for-python`.

PyCharm
-------

You can configure PyCharm to enable external tools, in |project| terms, Qt Designer, and
Qt Creator. Go to ``File > Settings > tools > PyCharm External Tools``, and include the following
information to add them to your project.
Later, you will be able to right click a ``.ui`` file, and select ``Qt Designer``,
``pyside6-uic``, or any tool that you configured this way.