how can I move my Qt project to another PC

11,542

There is no such option to export/import a project in QtCreator, however...

You can copy a project folder of your application on new machine if you have identical configuration:

  • QtCreator and Qt library are installed in the same path as on old machine.
  • Project folder is copied into the same path on other machine.

The reason is simple: Application.pro.user file contains absolute paths.

On the other hand, you can copy your folder into any new path. Delete Application.pro.user file. And open Application.pro in QtCreator - you will create new local project. QtCreator will ask you what Qt version you want to use.

If you have a problem with your resource files, ensure that you do not use absolute paths. Open resources.qrc file in text editor and see what paths you have there.

Share:
11,542
Surjya Narayana Padhi
Author by

Surjya Narayana Padhi

I feel passionate to work in computer vision. It like a magic to me. Giving machines intelligence is so cool thing. I like to work various projects which are cool. Like to learn any technology on my way to accomplish a cool project. Exploring data,applying machine learning techniques for prediction or statistical methods to get insights is so awesome. Creating nice visualization using python is so nice. My hobby : Reading recent science news, Astrology, music

Updated on June 18, 2022

Comments

  • Surjya Narayana Padhi
    Surjya Narayana Padhi about 2 years

    I am working on a Qt GUI project in a PC with Qt Creator. I want to shift this project to a new PC installed with Qt Creator. Can I know how can I create a single package of my current qt project work to export to another PC.

    I tried to copy just the whole project folder but it din't work. The resource files din't came and I am getting a lot of compilation errors.