Probem in Qt creator plugin implementation
-
Hi SGaist,
Thank you for our reply.
Ya i know Qt4.7 is older version of qt.
I have tried with Qt5.2 in window and Linux still i am faceing same problem.Yes i have followed same http://doc.qt.digia.com/qtcreator-extending/creating-plugins.html
Can you please help me in create plugins for Qt Creator so that i can add custem widet in qt creator.
-
Did you check that your are using matching Qt libraries and compiler as Qt Creator before trying to build the plugin ?
-
hi,
I am sorry,
I dont know how to check labraries and compiler matching with qt creator.
can you please help me.I am using Qt creator 2.4.1 based on Qt4.7.4(32-bit).
-
Then you should rather get the latest of both Qt 5.3 and Qt Creator 3.1 and build creator yourself so you are sure to use everything in sync. Then you can follow the documentation to build your Qt Creator plugin
-
That should be #include<extensionsystem/iplugin.h>, all lower case.
And as SGaist said, if you mean to re-distribute this, you should target Qt Creator 3.1 and Qt 5.3. -
Thank you for your response SGaist and andrep.
It (#include<extensionsystem/iplugin.h) is in small letters only still faceing problem.
I am trying in Qt5.3 i will let you know.
Thank You
-
HI SGaist,
I have download Qt5.3 and creator 3.1.1 windows based version and installed.
and have download Source code .Zip file from following "http://qt-project.org/downloads".
i could't understand how to build the qt creator and how to find qt creator source files.
next what i am suppose to do for creating a plugin for qt creator.
please help me.Thank you
-
Hi,
As per "http://doc.qt.digia.com/qtcreator-extending/first-plugin.html"
What path i suppose to give in 'Qt Creator Source' and 'Qt Creator Build'.I am not finding any source files.
please help me..
-
Hi,
You have "here":http://doc.qt.digia.com/qtcreator-extending/ the complete documentation that explains what to do to extend Qt Creator
-
Hi, built a plugin last week for Qt 5.3, the link in SGait's post is good, here are some additional info:
-
Once you've downloaded QtCreator's source zip, you need to extract it and build a new QtCreator 3.1.1 .exe-file from the source. This version 3.1.1 of QtCreator has a slight extra gotcha: it needs to be built with Qt 5.2.1 :-)
-
So uninstall Qt 5.3 and instead install Qt 5.2.1.
-
Then doubleclick on the qtcreator.pro file from the zip, the qtcreator project should open sloooowly in your QtCreator 3.0.1 (in Qt 5.2.1).
-
Important: change from Debug to Release build mode. (Assuming you are building your plugin in Release mode. )
-
Start the build, make same coffee, it will take 30 minutes on a good PC with an SSD.
-
Now you are ready to build your QtCreator plugin. Use the directory where qtcreator.pro is as the 'Qt Creator source' directory. Use the directory where the release bulld was created as the 'Qt Creator Build'.
-
First time, just click through the Wizard and let everything be defaults.
-
Note that you have 2 different QtCreator builds. The 3.0.1 you downloaded, and the 3.1.1 one you built yourself. Default is that your plugin is placed inside the 3.1.1 one. So open it and see if your plugin was loaded.
EDIT: you have to keep Qt 5.2.1 around for working with your QtCreator plugin, I think you can install Qt 5.3 as well but haven't tested.
MORE EDIT: The vanilla QtCtreator 3.1.1 inside Qt 5.3 (the one you download) is built with Visual Studio 2010 32-bit. If you want to your plugin to be compatible with the vanilla QtCreator you also have to build it using Visual Studio, you cannot use MinGW :-(
I don't have the 2010 version, I use Visual Studio 2012 32-bit. It seems to work fine, but in other thread here I was warned that for example std::vector and std::list are not compatible across those versions. But if you stick to Qt structures and classes you should be fine if you want use MSVC2013 or 2012 instead. And I think the Express version should work too. -
-
Thank you SGaist and hskoglund for helping me.
I have one more doubt.
I have an application which is have hundreds of UI files. Its having functionalities like Open pages, Close, Minimize, Maximaze, Zoom IN/OUT, status bar updation and keyboard short cuts.
How to manage multiple UI file without creating .cpp and .h files for each UI file.
because have more than 700 pages.
Functionality for each page amolst same.
I looking solution like create No.of UI and single .cpp and .h shold handle all GUI functionality.
Please help me how can i achive.
Please provide any materials or example which can help me.Thank you
-
Are you sure you need that many UI files especially if each page does almost the same thing ?
Why not have one "base" page and then derive the other from that one ? Or sometime it's simpler to create a more complex UI from the start
-
Hi SGaist ,
Ya I need those many files because each one display some filed staus.
bit more explaination about requirements:
I want to develop a GUI based application using Qt on Fedora Linux.
When Linux boots I want that my application be launched and Linux destop should not be launched. My application should work as linux destop.How can i achive this.
I come across Qtopia but did not understand how to use it.
can you please help me?
Thank you
-
In short you are trying to implement your own desktop environment ?
-
Yes..
can you suggest how to do achieve? -
With an awful lot of work, no joke.
You should maybe consider using something like "razor-qt":http://razor-qt.org/screenshots/
-
Hi SGaist,
I am exploring possibilities of implementing my own desktop using razor-qt.
i want to ask to one more doubt.
how to add/ create a UI file to existing project in Qt Creator.
Their is a option right click on project->add new->Select Qt(under files and classes) and select Qt designer form ->choose->next->next->finish.
Its provide one more ui file. but i dont know how to display newly created Ui file from existing project.
can you please help me.
-
QUiLoader comes to mind
-
Hi SGaist,
Thank you for your quick replay..
Its working..
may i know your mail Id or facebook id or tweeter id...
-
Hi, post is old, but the question hasn't been answered...
Same problem here. QT and Creator up to date, sources downloaded and Paths set.
There's no #include <extensionsystem/iplugin.h>...Paths ARE set, but no matter if correct or not,
**there is no "iplugin.h" on my system. **
What else to download/checkout??