2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
After re-planning the custom folder, compilation errors occurred, such as
or
error: XXXX.h: No such file or directory
If the file is directly relocated to a new directory under Windows, you need to modify the .pro file
The old files may not be commented or deleted, as follows (commented)
- SOURCES +=
- # BoyAndGirlExample.cpp
- # CharExample.cpp
- # FontExample.cpp
- # TextEditorExample.cpp
- # buttonexample.cpp
- # comboxexample.cpp
- # datetimeexample.cpp
- # defaulthandlerexample.cpp
After the directory is reorganized, references between files need to be made based on the relative paths of the files, such as
- #include "widgets/FontExample.h"
- #include "widgets/numconvert.h"
- #include "widgets/spinboxexample.h"
- #include "widgets/buttonexample.h"
- #include "widgets/sliderprocess.h"
- #include "widgets/datetimeexample.h"
- #include "widgets/timerexample.h"