Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force QtCreator to load a pro.user file?

Tags:

qt

qt-creator

I have set up extensive build (10+) configurations (per my project's requirements) as well as deployment and "run" configurations for my project. This project is based on an external harddrive that is moved between two machines. The problem is that every time I move the hdd, QtC wants to erase all my settings and start over from scratch.

How do I force QtC to load my project settings? Right now I have had to start over because, without me having to click "save" anywhere, QtC overwrote all of my settings the moment I opened my project with no warning.

I suppose I don't even have to force it to load the file. I would be fine if I just knew what it was in the *.pro.user file that tips QtC off that it should ignore me (and common sense) and nuke my work for no reason. If I knew that, I could manually cut and paste over my settings from .user file to .user file. I have already tried manually updating two fields int he *.user file called "EnvironmentId" & "FileVersion", but QtC somehow still magically knows I want it to trash my project.

Can anyone help me?

like image 225
SaburoutaMishima Avatar asked Jun 30 '13 16:06

SaburoutaMishima


People also ask

What is pro user file in Qt?

pro. user file is created by Qt Creator when a project is created or opened and contains stuff like editor configuration for a given project.

What pro and PRI file in Qt?

pri files is exactly the same as the format of the . pro files. The main difference is one of intent; a . pro is what most people would expect to run qmake on directly, while a .


1 Answers

Well, actually Qt Creator does support shared .pro files.
This link: http://doc.qt.io/qtcreator/creator-sharing-project-settings.html shows how to do it.
So, no reason to switch to shell scripts :-)

Note: Qt (and Qt Creator) is an open source project. Everyone is free to add improvements to the code. Remember that Qt is free, and we should all be very thankful for that. It is one of the greatest C++ libraries in existence. It is maintained by a large number of volunteers, and, yes, there still some 'annoyances' and bugs in there. Please file your complaints on the Qt bug tracker, no need for ranting.

like image 98
Kurt Pattyn Avatar answered Nov 15 '22 07:11

Kurt Pattyn