Originally Posted by
aamer4yu
This seem to be a simple single directory application.
If you are familiar with Qt apps on Linux, you should face no problem porting it.
To my shame, I am (no longer) familiar with Qt apps - it has been quite a while...
Originally Posted by
aamer4yu
You can proceed with 2 approaches -
1) Clean all the MSVC files.. keep only the source files. Then do
qmake -project
This will generate a .pro file which you can use in Qt Creator
2) Make a new project in Qt Creator ( choose the one which is close to your app, or start with empty project)
Keep adding the source, header, resources files to the project.
I hope this helps
Unfortunately not (yet) because I need to find a solution that can be automated (i.e. developer sends us zip-file which gets unpacked and compiled automatically).
I went to the ./Notepad directory and ran qmake -project which executed fine, then I generated a makefile by just running qmake, but when I try to build it cannot find all headers. (it cannot find qlabel.h which is in the QtWidgets subdirectory)
qmake --help seems to know the answer:
Mode:
-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *; *; *; *.ts; *.xlf; *.qrc
Note: The created .pro file probably will
need to be edited. For example add the QT variable to
specify what modules are required.
Mode:
-project Put qmake into project file generation mode
In this mode qmake interprets files as files to
be built,
defaults to *; *; *; *.ts; *.xlf; *.qrc
Note: The created .pro file probably will
need to be edited. For example add the QT variable to
specify what modules are required.
To copy to clipboard, switch view to plain text mode
I guess I need to specify the QtWidgets module.
Naive as I am, I tried
echo "QT += QtWidgets" >> Notepad.pro
echo "QT += QtWidgets" >> Notepad.pro
To copy to clipboard, switch view to plain text mode
but that only gets me:
Project ERROR: Unknown module(s) in QT: QtWidgets
Project ERROR: Unknown module(s) in QT: QtWidgets
To copy to clipboard, switch view to plain text mode
After reading:
https://qt-project.org/wiki/Spelling..._Documentation
I also tried it with just "Widgets" instead of "QtWidgets" but that didn't work either.
Added after 6 minutes:
OK, it worked with "widgets" (all lowercase), thanks a lot!
Bookmarks