Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create .pri file with Qt creator

Tags:

ide

qt-creator

I'm trying to learn qmake, but can't find a native way to create .pri file with qt creator

like image 312
themean Avatar asked Jun 11 '12 14:06

themean


People also ask

What is .PRI file in Qt?

PRI File Summary File Extension PRI has two unique file types (with the primary being the Qt Project Include File format) and is mostly associated with Qt SDK (The Qt Company) and one other software programs. The majority of PRI files are considered Developer Files.

Where is pro file for Qt Creator?

pro file in the Finder/File Explorer. In the Qt Creator application, choose menu File->Open File or Project, navigate to the project folder and choose the . pro file to open.

What is qmake file?

QMake is a build system that generates Makefiles for GNU Make or project build files for Microsoft Visual Studio. It is part of the Qt software framework by Trolltech. While it is commonly used to construct Qt-based software, any project can benefit from it.


2 Answers

You can create a new .pri file with Qt Creator as follows:

  1. Select File in the menu bar.
  2. Select New File or Project....
  3. Choose General under Files and Classes on the New dialog.
  4. Give the name of your file with extension, for example: test.pri.

(I'm using Qt Creator 2.4.1.)

like image 112
Bill Avatar answered Sep 20 '22 16:09

Bill


The sequence of actions on Qt Creator 4.12.0 on MacOS

New File or Project Select empty file Write file name and path

like image 33
Alexandr Kirilov Avatar answered Sep 17 '22 16:09

Alexandr Kirilov