CorradoMotta / ASV_interface

Repository to store progress on the ASV interface development
0 stars 0 forks source link

Project configuration #5

Closed CorradoMotta closed 2 years ago

CorradoMotta commented 2 years ago

Issue QML and C++ files should be stored in separate folders according to their functions.

CorradoMotta commented 2 years ago

Noticed that when moving files into folders and re-add them to the Qt Project, the qmake files will add into SOURCE and HEADERS the new file path but not remove the old ones. that should be done manually.

CorradoMotta commented 2 years ago

Steps to move an existing file to a folder in Qt Creator:

  1. Move the files into folders from system explorer. Remove the files in the previous location.
  2. Right-click on the project and select "Add existing files"
  3. Click on all files to be added.
  4. Make sure the qmake file does not repeat the import and fix it eventually.
  5. Fix all include statements in the code
  6. Run "clean"
  7. Run "Run qmake"
  8. Ready to build and run
CorradoMotta commented 2 years ago

Steps to move an existing file to a folder in Qt Creator for QML:

  1. Move the files into folders from system explorer. Remove the files in the previous location.
  2. Right-click on the qrc file and select "Add existing files"
  3. Click on all files to be added.
  4. Open the qrc file with notepad and remove manually the path of the previous location of the files.
  5. Fix all include statements in the code. In qml you need to import the folder where the files are only.
  6. Run "clean"
  7. Ready to build and run
CorradoMotta commented 2 years ago

Last step: verifies that all works.

CorradoMotta commented 2 years ago

All tested and done,