Problem with "Custom Widget Plugin Example"
-
I'm trying to get the analogclock Custom Widget Plugin Example to work ("Custom Widget Plugin Example "http://qt-project.org/doc/qt-5.0/qtdesigner/customwidgetplugin.html). I copied the files form the website to my pc and opend the .pro file with QT then I compiled it, but then an window comes up with the windowtitel"Benutzerdefinierte Ausfürbare Datei" / "Custom executable file" and the Message "es konnte keine ausführbare Datei gefunden werden" / "couldn't find executable file" !http://lh5.ggpht.com/3YEtjOcbh-fGiFKYqr-BP8uTVyYQOc4Ynq5Jt7UF0Lf4-ge08S4pWb0GKiH4Q3CHKMubRw=s117(message)!
what am I doing wrong and how can I fix this problem. I'm using QT5.1
Thank you for your help :) -
Hi and welcome to devnet,
If I am not mistaking this example is meant to be build from Qt's sources.
If you don't have them already, download them and go to the right subdirectory. You'll should be able to build from there. -
thank you for your fast response! :)
Okay I download the sources from the Qt Website.
"http://download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.zip":http://download.qt-project.org/official_releases/qt/5.1/5.1.0/single/qt-everywhere-opensource-src-5.1.0.zip
But what am I doing with the sourcefiles? -
I forgot... You probably already have them in the example subfolder from your current installation. So if you are using QtCreator you should have an "Examples" tab in the Welcome pane search for this example and then you can start from there :)
Sorry for the unneeded download
-
the Custom Widget Plugin Example is not in the example files. but there is an other example that creates the same Error Message.
-
Did you open it from QtCreator ?
-
I opend the example Page from the qt creator and compiled the example Code and that gave ne the same error message. What am i doing wrong?
-
I just realized, are you trying to run the plugin example ?
This project is a library, there is no executable associated.
You can follow "this documentation":http://qt-project.org/doc/qt-4.8/designer-using-custom-widgets.html to achieve what you want
-
Yes, i'm trying to execute the project. I thought that's the Way to make a Plugin for the qtdesigner. Am i wrong with that?
I have Used the promote Option to make my custom Widget work, but with this Solution i could not use the properties of my custom Widget in qtdesigner. I really want to make a New Control / Widget Plugin for qtdesigner. How can i manage this? Thank you Very much for your help sgaist! -
No, you only build a plugin, there is nothing to run since it's a library. Once built you should be able to use it from designer
-
okay, I compiled it in release mode and get a customwidgetplugin.dll of the size 50kByte. Then I copied it manualy in the folder C:\Qt\Qt5.1.0\5.1.0\mingw48_32\plugins\designer. there where some other plugins like qwebview.dll and qdeclarativeview.dll. When I start QTcreator and open the QDesigner View select Tools>Formulareditor>about QT Designer Plugins the Dialog shows only the 3 Plugins which came withe the installation of QT (qwebview.dll, qdeclarativeview.dll,..) but my customwidgetplugin.dll is not in this dialog. How can I at it? Or should it be added by itself, when i compile the projekt?
-
I think you went further on this topic in your other "thread":http://qt-project.org/forums/viewthread/30944/ so no need for double work, let's continue there
-
yes thats true :), i have described the next problem in this thread. Do you have any idea why it works only in QTDesigner and not in QTCreator?