Qt error after switch to ITK 4 - c++

We have a Windows7 VS2008 C++ app that uses both ITK 3.10.1 and Qt 4.5. We run CMake 2.6-patch 4 to generate both ITK and our app C++ projects, and everything run OK.
Now I switch to ITK 4.1.0, and to do this I had to upgrade CMake from 2.6 to 2.8 and generate ITK 4.5 and our app with this CMake. Now ITK compiles OK, but the app does not. The error dialog reads "There is no Qt version assigned to this project for platform Win32. Please use the 'change Qt version' feature and choose a valid Qt version for this platform.".
The platform was Win32 and still is; the computer is the same, and I did not touch Qt. Obviously I did not do something that should be done or did something that should not.
Any help will be highly appreciated.
Regards.
Mike

Related

Do I need to install Mingw compiler components in Qt installation if i had already installed Mingw in my computer?

I installing Qt open source framework in my window 10 pc. I already downloaded Mingw compiler and installed it to write C/C++. Now I wanna learn QT framework. I using Qt online installer. I choice to download custom compoment. Do I need to selet mingw component to download if i had already installed?
Note that there's not just one MinGW distribution and version out there. You can check out the exact supported version per Qt release at https://wiki.qt.io/MinGW .
Anyhow, if you install the pre-built Qt binaries via the online installer, the matching MinGW version will automatically be installed for you, and will be registered in Qt Creator so that things just work. There is actually no official way to prevent this.

Qt cannot load cocoa plugin

I'm trying to compile and run an application on a MacBook using Qt Creator. There are no issues compiling the project, but when I try and run it, it seems to be unable to load a plugin.
Could not load the Qt platform plugin "cocoa" in "" even though it was found.
The application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
This error occurs both when trying to run the application from Qt Creator or via Finder. It seems to only happen when I use the CMake build system (no issues when using QMake), but my existing project that I need to deploy on MacOS uses CMake.
My steps to reproduce are:
Install a completely clean MacOS (no user data)
Install Xcode 11
Install CMake 3.15
Install Qt 5.13.1 MacOS package
Open QtCreator->New Project->Qt Quick Application - Scroll
Set build system to CMake (important)
Compile and notice error
I am using:
Qt 5.13.1
macOS Catalina 10.15
Apple Clang 11
I recognize that for final user deployment I will need to use the macqtdeploy tool to copy the Qt libraries to the executable folder, but I should be able to run my app from QtCreator without doing this? Especially as it works fine when using QMake.
So it ended up being some kind of name resolution thing where Qt Creator couldn't decide whether to use the debug or release versions of the framework. Supplying DYLD_IMAGE_SUFFIX=_debug fixed this (add this to the environment section under Kits).

Setting Up Qt 5

I downloaded and installed the community version of Qt 5.10 and Qt Creator for a C++ project I'm working on. I'm just wondering if I did something wrong during the installation because in my options, there is no cmake file, or any debuggers. Or am I supposed to set these up myself?

Linux Mint x64: Qt 5.3.1 plugin deployment: incompatible qt library

Using CMake to build both an app and plugin for it. Everything works fine on developer's PC, but on remote clean Linux Mint x64 installation there is an error:
plugin uses incompatible qt library Qt 5.3.1 [release]
Plugin and Application was build in release mode (actually I have tryed different combinations, with no luck)
I saw one guy here already asked about similar issue on Windows, but his question not answered.
Any ideas?
Problem fixed by exporting QML2_IMPORT_PATH and QT_PLUGIN_PATH, and copy dependebncies of Qt platform plugins (xcb)

c++ Qt Qwt build issue

I a Qt neophyte so I apologize in advance if this question is obvious...
I just downloaded and installed the latest version of Qt Creator 5 as well as Qwt (Qt Widgets for Technical Applications) on my Windows7 machine.
Qwt.pro does not build using QT Creator on my windows machine.
It all worked fine on my Ubuntu machine using Qt Creator 4.
Is there a compatibility issue with Qwt and the newest version of Qt??
Have you installed the MinGW version Qt? If not make sure you have installed Visual Studio, which contains the MSVC compiler. To get started use the MinGW version, the MSVC compiler is faster on Windows but more complicated to set up. For testing run qmake in your Qwt directory directly from the Qt console (start menu). Also make sure you can build a simple hello world project with Qt Creator first.