QT5 and QT6 projects issues with QWidget and QMainWindow
-
@jsulm I installed qt5 on directory as the following: /opt/Qt
Accordingly, I opened new widget and I controlled CMakeLists.txt which looks like as shown in the image!
As you can see, project and its files are highlighed as the white blank as well as include packages in the source files, provided compilation error.
-
@Fikrat said in QT5 and QT6 projects issues with QWidget and QMainWindow:
compilation errors
It looks rather like errors from code modelling.
Did you actually try to build? -
@Fikrat
Show the Build Output errors. The only one that matters is the first one where it can't find<QObject>
.I need to install qt5 on ubuntu 20.04, not on ubuntu 18.04
You realize that Ubuntu release supplies a pre-built package for Qt5? But not sure why you want both Qt5 & Qt6. Plus Qt5 was designed for qmake rather than cmake.
-
When QtCreator shows files grayed out then the cmake/qmake configure run did not work out and the error was written to the configure output panel - look at it, fix the errors and run again. QtCreator will not do any code model things when the project is not configured correctly.