Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

Specifying Run Settings

Qt Creator automatically creates run configurations for your project. To view and modify the settings, select Projects > Run.

The settings to specify depend on the type of the project: Qt project or Qt Quick project, and on the target for the project.

Click Add to add run settings for a project and Remove to remove the current settings.

Specifying Run Settings for qmake Projects

The run configurations for qmake projects derive their executable from the parsed .pro files. For more information on how the commands are constructed, see Starting External Processes.

Specifying Run Settings for Desktop Targets

You can specify command line arguments to be passed to the executable and the working directory to use. The working directory defaults to the directory of the build result.

For console applications, check the Run in Terminal check box. If you need to run with special environment variables set up, you also do it in the run configuration settings.

You can also create custom executable run configurations where you can set the executable to be run. For more information, see Specifying a Custom Executable to Run.

Specifying Run Settings for Symbian Devices

Qt Creator automatically detects Symbian devices that are connected to the development PC with a USB cable. If only one device is detected, the application is deployed to it and run on it. If multiple devices are connected to the PC, make sure that the correct device is selected in the Symbian Device run settings for your project.

You can also pass command line arguments to your application on the device. Press the Device info button to get more information about the selected device, such as the CPU type and the running debugging agent version.

"Run settings for Symbian devices"

To use the CODA debugging agent over a WLAN connection, enter the WLAN address of the device and the port number to use, separated by a colon (:), in the WLAN field. For example: 192.167.0.100:1534

When you deploy the application for the Symbian Device target, Qt Creator generates a Symbian installation system (SIS) file in the project folder and copies it to the device that is connected to the development PC. If no device is connected, you must remove the Deploy SIS Package step, to create the package. Click Remove Item to skip the step.

"Removing deploy steps"

When you are ready to publish the application on Ovi Store or some other channel, you must make sure that the SIS file meets the requirements for publishing and installing applications on Symbian devices. For more information, see Deploying Applications to Symbian Devices.

Specifying Run Settings for Maemo and MeeGo Harmattan Devices

To run an application on a Maemo or MeeGo Harmattan device, create and select a device configuration in the Maemo 5 or Harmattan run settings for your project. You can also pass command line arguments to your application.

"Run settings for Maemo devices"

To run and debug applications on Maemo or MeeGo Harmattan devices, you must create connections from the development PC to the devices. Click Manage device configurations to create connections. For more information, see Configuring Connections to Maemo Devices and Configuring Connections to Harmattan Devices.

When you run the application on the Maemo5 or Harmattan target, Qt Creator generates a Debian installation package in the build directory by default. You can deliver the installation package to users for installation on devices that are of the same type and run the same firmware as the connected device. For more information, see Deploying Applications to Maemo or MeeGo Harmattan Devices.

Specifying Run Settings for Generic Linux Devices

To run an application on a generic Linux device (without MADDE support), create and select a device configuration in the Desktop run settings for your project. You can also pass command line arguments to your application.

"Run settings for Generic Linux devices"

In addition, you must create a connection from the development PC to the device. Click Manage device configurations to create connections. For more information, see Connecting Generic Linux Devices.

When you run the application on the Desktop target, Qt Creator generates an installation package in the build directory. The name of the directory is displayed in the Create tarball step. Qt Creator copies the tarball to devices by using the SSH file transfer protocol (SFTP) and extracts it.

Specifying a Custom Executable to Run

If you use CMake or the generic project type in Qt Creator, or want to run a custom desktop executable, create a Custom Executable run configuration for your project. For example, when working on a library, you can run a test application that links against the library.

Specify the executable to run, command line arguments, working directory, and environment variables to use.

"Run settings for custom executables"

Specifying Run Settings for Qt Quick UI Projects

You can specify run settings for the Desktop target:

  • In the Qt version field, select a Qt version that has support for QML.
  • In the Arguments field, you can specify command line arguments to be passed to the executable.
  • In the Main QML file, select the file that Qt QML Viewer will be started with.
  • In the Debugger group, select the languages to debug: C++ and QML. Debug port is the port to access Qt QML Viewer. You can use any free port in the registered port range. For more information, see Debugging Qt Quick Projects.

Note: Opening a socket at a well-known port presents a security risk. Anyone on the Internet could connect to the application that you are debugging and execute any JavaScript functions. Therefore, you must make sure that the port is properly protected by a firewall.

"Run settings for Qt Quick UI projects"

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();
Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 42
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 9
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtcreator-2.3
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web