Tips and TricksSwitching between modesQt Creator uses different modes for different purposes. You can quickly switch between these modes with the following keyboard shortcuts:
For more information about Qt Creator modes, see Qt Creator Modes. Moving Between Open FilesTo quickly move between currently open files, press Ctrl+Tab. Moving To the Edit ModeTo move to the Edit mode and currently active file, press Esc. If you already are in the Edit mode:
Using the Filter in Options DialogTo find specific settings you require in Tools > Options... use the filter located at the top left of the Options dialog box. Using Keyboard ShortcutsQt Creator provides many useful keyboard shortcuts. To customize, import or export keyboard shortcuts, select Tools > Options... > Environment > Keyboard. Running Qt Creator From Command LineYou can launch Qt Creator from command line using the name of an existing session or .pro file by giving the name as the command argument. For example, running qtcreator somesession, launches Qt Creator and loads session somesession. Note: Make sure Qt Creator is included in the PATH environment variable. This can be done by typing the following in the command line: set PATH=c:\qtsdk\mingw\bin;c:\qtsdk\qt\bin;%PATH% Showing and Hiding the SidebarTo toggle the sidebar in the Edit and Debug modes, click For more information on using the sidebar, see Browsing Project Contents. Moving To SymbolsTo move straight to a symbol used in a project, select the symbol in the Editor toolbar drop-down menu. For more information on the editor toolbar, see Using the Editor Toolbar. Displaying Signals and SlotsIf an instance of a class is derived from QObject, and you would like to find all other objects connected to one of your object's slots using Qt's signals and slots mechanism, select Tools > Options... > Debugger > Debugging Helper > Use Debugging Helper. In the Locals and Watchers view, expand the object's entry and open the slot in the slots subitem. The objects connected to this slot are shown as children of the slot. This method works with signals too. Displaying Low Level DataIf special debugging of Qt objects fails due to data corruption within the debugged objects, you can switch off the debugging helpers. When debugging helpers are switched off low-level structures become visible. To switch off the debugging helpers:
X
|
Publicité
Best OfActualités les plus luesSemaine
Mois
Année
Le Qt Developer Network au hasard![]() Comment fermer une applicationLe Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.
CommunautéRessources
Liens utilesContact
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.0 | |
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 contacter par email ou par MP ! |
Copyright © 2000-2012 - www.developpez.com