Starting with KDE Frameworks 5 and Qt Creator
Qt creator has its own configuration for qt versions used in builds.
the config is in tools > options > build and run > Kits
Make sure the kit you have selected (e.g. Desktop) has the correct Qt version set.
If the qt version you want isn't in the dropdown, you can add it in the Qt Versions tab.
Also check you have the right kit selected to build your project (see the build configuration button - above the run/green play button)
The mkspec should be automatically set to use the system qt version and modules, but you can make sure by setting Qt mkspec (in tools > options > build and run > Kits
) to /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64/
After all this, you can verify the correct command is being run by looking at the compile compile output pane when running build > Run qmake
.
Using KDE frameworks and Qt Creator installed without apt
Ok so after a looking a lot, a solution has been suggested here https://forum.qt.io/topic/104861/how-to-use-kde-frameworks-with-qt-creator/8
Essentially Qt, if not installed through the system's repositories, is unable to find the KF5 modules. In order to fix this you can add a QMAKEPATH environment build variable to your project that tells Qt where it should look for the module, in my case this was in
/usr/lib/x86_64-linux-gnu/qt5
Configuring Qt creator for KDE applications
The recommended way to build a KDE project is use CMake, not QMake. I really recommend you this approach because some KDE applications, like plasmoids, can not be build correctly using QMake.
In addition you can use KDevelop, but if you prefer Qt Creator, you can use it with a CMake project without problems.
http://techbase.kde.org/Development/Tutorials/CMake
How to make use of KPixmapSequence on KDE Frameworks 5
It seems that one needs KIconLoader to make it work:
auto seq = new KPixmapSequence;
seq->setSequence(
KIconLoader::global()->loadPixmapSequence(
QLatin1String("process-working"), KIconLoader::SizeSmallMedium));
How to make applications in QtCreator use KDE oxygen theme?
Qt 4 is still available in the official extra repository, so just get it. Actually, you could even use the 32 bit version on 64 bit kernel.
sudo pacman -S qt4
or
sudo pacman -S lib32-qt4
then, you need to configure QtCreator to use that /usr/bin/qmake-qt4
.
Related Topics
Wget Returns "Unable to Establish Ssl Connection"
How to Efficiently Get 10% of Random Lines Out of The Large File in Linux
Why Am I Getting an "Implicit Declaration of Function 'Ndo_Get_Stats' " Error
Different Memory Alignment for Different Buffer Sizes
Counting Lines Starting with a Certain Word
Executing Shell Script from Current Directory Without '"./Filename"
Session Permission Denied on Aws After Setting Up Cake PHP.
Get Mac-Address of Host from Within Docker Container
Parallel Processes: Appending Outputs to an Array in a Bash Script
Compare Time Using Date Command
Does Zgrep Unzip a File Before Searching
Make Command Not Working in Ns 2.35
How to Sort Files in Paste Command
Truncate Table via Command Line in Linux
Copy Failed: Stat /Var/Lib/Docker/Tmp/Docker-Builder700869788/Private: No Such File or Directory