Na tej strani

Zagon programa » Qt Creator « iz ukazne vrstice

Qt Creator lahko zaženete in določite nekatere možnosti iz ukazne vrstice. Na primer, datoteko lahko odprete na poljubni vrstici in stolpcu.

Če želite uporabiti možnosti ukazne vrstice, vnesite naslednji ukaz v imeniku, ki vsebuje izvedljivo datoteko Qt Creator, ali pa kot del ukaza določite pot do datoteke Qt Creator:

qtcreator [option] [filename[:line_number[:column_number]]]

Opomba: Kot ločilo med imenom datoteke in številko vrstice ter med številko vrstice in številko stolpcalahko uporabite dvopičje (:) ali znak plus (+). Med ločilom in številko vrstice lahko uporabite tudi presledek.

Primeri ukazov CLI

Spodaj so navedeni primeri ukazov na podprtih platformah, ko namestite Qt Creator v Qt Online Installer v privzeto mesto. Po potrebi spremenite poti.

V sistemu Windows:

  • C:\Qt\Tools\QtCreator\bin\qtcreator -help
  • C:\Qt\Tools\QtCreator\bin\qtcreator C:\TextFinder\textfinder.cpp:100:2
  • C:\Qt\Tools\QtCreator\bin\qtcreator C:\TextFinder\textfinder.cpp +100+2

V sistemu Linux:

  • ~/Qt/Tools/QtCreator/bin/qtcreator -help
  • ~/Qt/Tools/QtCreator/bin/qtcreator /src/TextFinder/textfinder.cpp:100:2
  • ~/Qt/Tools/QtCreator/bin/qtcreator /src/TextFinder/textfinder.cpp+100+2

V sistemu macOS:

  • ~/Qt/Qt\ Creator.app/Contents/MacOS/Qt\ Creator -help

Odpiranje projekta iz mape

Če želite odpreti projekt, ki se nahaja v določeni mapi, lahko ime mape posredujete kot argument ukazne vrstice. Program » Qt Creator « poišče sejo, ki ustreza imenu mape, in jo naloži. Ali pa poišče projektno datoteko v mapi in jo odpre.

Na primer v sistemu Windows:

C:\qtcreator\bin>qtcreator.exe C:\Examples\alarms

Glejte tudi Možnosti ukazne vrstice.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.