How to build KDE Oxygen plugin on Qt 5? - qt

I'm moving my project from Qt 4.8.4 to Qt 5.1. On all platforms application looks native except (ironic) KDE. I know problem source - KDE oxygen style (plugin) is compiled on Qt 4.8.4 so it can't be used by Qt 5.1 . So if it is plugin problem only, then maybe building it on Qt 5.1 solve problem. I downloaded KDE Workspace module from KDE which include oxygen source. It is in <kde workspace src>/libs/oxygen but have no idea how to compile only just this little lib. Is anyone have oxygen plugin compiled on Qt 5.1 or know steps how to build it?

Related

QT offline installer version misunderstanding

Trying to download Qt offline installer since online failed installation.
Trying to download from official releases: https://download.qt.io/official_releases/qt/5.9/5.9.5/
But why there is version 5.9.5 while default online installer is ver 3.0.4 ?
The online installer is a tool, and the current version is 3.0.4. It can download any Qt version from the internet (hence online)
The offline installer has everything you need for a specific Qt version (e.g. 5.9.5) packed in the installer (hence offline).
For each Qt version that the single online installer can install, there will be a separate offline installer.
By downloading the online installer you are becoming able to use the online Qt installer not the Qt itself. Downloading it is
By using online Qt installer you can install lots of things about Qt like Qt designer Qt 5.10.1, Qt 5.4.2 etc. And These are inside the Qt online installer.
Do not worry about the version of the online installer. It has the latest Qt version.(Beside the old ones).
If you are not sure what you are doing. You can use this link to download Qt:
https://download.qt.io/archive/qt/

Can a Qt 5 project invoke a Qt 4 project?

I have built a UI application using Qt 5.7 and an independent widget using Qt 4.8. The widget uses QGIS API, which is incompatible with Qt5. Is there a way to run the widget from the Qt5 based application?
It cant, the Binary Compatibility of Qt5 means that a library build with Qt 4.8 will not run on it. The Api Compatibility was mostly kept, so if you could compile the QGIS on Qt5, then you could run your application on it.

An installer for Qt apps

I've created a Qt calculator app using Qt Creator 3.6.0 purely in C++ code (I didn't use Designer)
I would like to know how to use Qt to make it installable for publishing.
I ran the app in both Release and Debug modes and have both folders of the two.
I also downloaded and installed Qt Installer Framework Opensource 2.0.1 for my Qt Creator 3.6.0 (the IDE I use for Qt).
And I also have the .dll files needed to run the .exe file.
I've searched the Web for it. But since I'm a novice in Qt I can't do the works properly, or I don't understand. (They seem complicated)
Now, is there any straight forward method to use an installer for the app to make as platform independent as possible?
If so, what installer? And how to do the process? This is the first time for me.

setting up qt creator 2.7 on windows

I am beginning to learn Qt gui programming and for this I downloaded Qt Creator 2.7.1 for win xp.
I installed it but when i try to create a new project it asks me to select a kit. There are no kits installed so they say me to setup one. I installed the MinGW compiler (and selected the mingw-g++.exe but i thinks its not right). But when I set up the Qt version they ask me to locate the qmake.exe which i cant find anywhere on my system.
please guide me on setting up the creator so that i have a painless experience in the future. Please tell me the correct steps and the right files to choose.
Qt Creator is not enough to create applications using Qt framework. You also need Qt framework (the Qt libraries) installed, see the download page here and depending on the version of Qt you want you can download one of these:
Qt 5.0.2 for Windows 32-bit (MinGW 4.7, 650 MB) - this one is kind of an SDK and include a MinGW, Creator and obviously the Qt framework, but if you added your MinGW to system's path you will have to remove it from there, because if you have multiple versions in path you will get some errors when you build applications
or
Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB) - for this i think you need to install MinGW your self - but i'm not sure about that

A qt5 simple app doesn't run in windows 7

I use Qt 5.0.1 and Qt Creator 2.6.2 in W7. I tried to run a simple app from examples which contains only a window ("Widgets tutorial - creating a window"). When I run it in Qt Creator, it works. But when I run it as a standalone app (Release), it doesn't.
I filled the folder with every dll it had asked (26 MB of dlls, while the app is 10KB!!!). Now it doesn't ask for any files, it just doesn't run at all with no explanations.
I tried to add some files as it is advised in Application deployed with QT5 libraries does not start on Windows 7
but no luck. In
HelloWorld Deployment with QtQuick 2.0 in Windows 7 and XP
there are no problems in w7.
May be this a dependency problem, These links describes it:
Qt 5.0 program runs in QtCreator but not outside
How to build QTcore4.dll without dependency to MSVCx80.dll?
platforms/qwindows.dll is a "non-required" required DLL to run Qt5 apps. Build your app in Release mode and steal the DLL from Qt Creator's folder (or find it into Qt's bin/platforms folder)

Resources