KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Frugalware-Art.org Artwork for Frugalware Linux 
 Arch-Stuff.org Artwork and Stuff for Arch Linux 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
- New questions .- Answered question .- Not answered question .- My questions .- Post your question here . 
Go back to the overview page to see other entries
Back to overview

click to vote up

QT (win32) Cannot use custom widgets build by itself

other - Aug 25 2009
Question:Good day,
I would like to know if anybody has a work around for the following problem.

I need to build my application for Windows and Linux, and therefore I'm using the prebuild QT binaries as development environment, notably qt-sdk-win-opensource-2009.03.1.exe (Qt 4.5.2)

I'm using the qLed Widget that is available on this site. It builds fine under Linux and Windows.
The problem appears when I try to use the qledplugin.dll under the windows version of QT Creator.

Navigating in Qt Creator to Tools->Form Editor->About QT designed plugins, I can see that it located my plugin at:
c:\Qt\2009.03\bin\designer\qledplugin.dll, but it failed to load it, due to a library incompatibility:

"The plugin uses incompatible Qt library. Expected build key "Windows msvc relase full-config", to "Windows mingw release full-config".

Is this really the intention that the windows version of QT should use MSVC to build custom widgets? It ships standard with mingw as compiler...

Any feedback will be much appreciated.

Note: There is a similar question posted directly to Trolltech, with no resolution proposed to the question: http://labs.trolltech.com/forums/topic/697

uSoft Software Development

Answer:The answer is revealed at

---- SNIP ----
I (jcable) reported this some months ago but Nokia don't seem to care.

The version of QT Creator shipped with the QT SDK Open Source version for windows is build using Visual Studio, whereas the SDK is build with and supports g++ (MinGW). This doesn't cause too many problems, but it totally defeats building and installing QT Designer plugins into QT Creator. The error message is:

Expected build key "Windows msvc release full-config" got "Windows mingw release full-config"

It can be solved three different ways:

1) Build QT Creator from source with MinGW
2) Build the plugin with Visual Studio
3) Build QT Creator with build key checking turned off.

Please, Nokia - ship a QT Creator which is built with the same compiler as the SDK!

---- SNIP ----

Note: Option (2) would be useless if you've got MS Visual Studio and the QT SDK precompiled build.(win-opensource-2009.03.1)
The reason: The QT SDK part is build with MinGW. Visual Studio will compile the source of your widget and when it gets to linking time, you will have QT libraries that was build in MinGW and not with Visual Studio, so you'll be stuck again.
Just recompile the QT Creator source with MinGW and be done with it.

Edit answer
uSoft Software Development

Back to overview

Add comment

Do you have a question?
Post your question here


Copyright 2010-2016 Linux42.org Team  Legal Notice
All rights reserved. Linux42.org is not liable for any content or goods on this site.
You can find our FAQ here.
All contributors are responsible for the lawfulness of their uploads.
Please send us a notice if you spot an ABUSE of the website.
Information about advertising in Linux42.org.
Developers can use our public webservice interface. More information here: public api
For further information or comments on this site, please send us a message