Doc: Describe starting Python interactive shell with options

Change-Id: Ife42fd2313b4855686abf12fd536e024f7650ef9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Leena Miettinen
2020-06-25 10:48:00 +02:00
parent aba5ecb363
commit cb5b0cffb3

View File

@@ -48,7 +48,7 @@
create a Python project that contains the source file for a class. Specify
the class name, base class, and and source file for the class.
\image qtcreator-python-wizard-app-window.png
\image qtcreator-python-wizard-app-window.png "Qt for Python wizard for creating a widget-based UI"
The wizard adds the imports to the source file to provide
access to the QApplication, the base class you selected in the Qt
@@ -112,6 +112,13 @@
sys.exit(app.exec_())
\endcode
You can now modify the boilerplate code in the Edit mode to develop your
Python application. Select \uicontrol REPL on the toolbar to start the
\l{https://pythonprogramminglanguage.com/repl/}{Python interactive shell}.
To start the shell and import the current file as a module, select
select \uicontrol {REPL Import File}. To also import all functions from
the file, select \uicontrol {REPL Import *}.
Open the .ui file in the Design mode to create a widget-based UI in \QD.
The \uicontrol Window wizard adds similar code to the source file, without
@@ -139,7 +146,7 @@
you to create a Python project that contains a main QML file. Specify the
minimum PySide version to run the application.
\image qtcreator-python-wizard-qml.png
\image qtcreator-python-wizard-qml.png "Qt for Python wizard for creating an empty Qt Quick application"
The wizard adds the following imports to the source file to provide access
to QGuiApplication and QQmlApplicationEngine: