Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Probem in Qt creator plugin implementation
Forum Updated to NodeBB v4.3 + New Features

Probem in Qt creator plugin implementation

Scheduled Pinned Locked Moved Qt Creator and other tools
24 Posts 5 Posters 11.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mvenkat061
    wrote on last edited by
    #1

    Hi,
    I have created " Qt creator Plugin" project. In this i am getting Error like
    "#include<ExtensionSystem/iplugin.h> " no such file or directory.

    I am using freeware version of Qt4.7.

    Please help how to create a plugin for creator.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvenkat061
      wrote on last edited by
      #2

      HI,
      following to previous post
      I am working on windows system
      I have not found any file like "iplugin.h" in Qt instaltion folder
      I have found "ExtensionSystem.dll".

      plz help me

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Are you aware of the fact that 4.7 is very old ?

        That said, if you want to build a plugin for Qt Creator you need to use the same Qt version that was used to build Qt Creator or build Qt Creator yourself.

        Did you follow "this":http://doc.qt.digia.com/qtcreator-extending/creating-plugins.html documentation to build your first plugin ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mvenkat061
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Did you check that your are using matching Qt libraries and compiler as Qt Creator before trying to build the plugin ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mvenkat061
              wrote on last edited by
              #6

              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).

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                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

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  andrep
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mvenkat061
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mvenkat061
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mvenkat061
                        wrote on last edited by
                        #11

                        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..

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          Hi,

                          You have "here":http://doc.qt.digia.com/qtcreator-extending/ the complete documentation that explains what to do to extend Qt Creator

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          0
                          • hskoglundH Online
                            hskoglundH Online
                            hskoglund
                            wrote on last edited by
                            #13

                            Hi, built a plugin last week for Qt 5.3, the link in SGait's post is good, here are some additional info:

                            1. 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 :-)

                            2. So uninstall Qt 5.3 and instead install Qt 5.2.1.

                            3. 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).

                            4. Important: change from Debug to Release build mode. (Assuming you are building your plugin in Release mode. )

                            5. Start the build, make same coffee, it will take 30 minutes on a good PC with an SSD.

                            6. 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'.

                            7. First time, just click through the Wizard and let everything be defaults.

                            8. 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.

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              mvenkat061
                              wrote on last edited by
                              #14

                              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

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                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

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  mvenkat061
                                  wrote on last edited by
                                  #16

                                  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

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    In short you are trying to implement your own desktop environment ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mvenkat061
                                      wrote on last edited by
                                      #18

                                      Yes..
                                      can you suggest how to do achieve?

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        With an awful lot of work, no joke.

                                        You should maybe consider using something like "razor-qt":http://razor-qt.org/screenshots/

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mvenkat061
                                          wrote on last edited by
                                          #20

                                          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.

                                          1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved