Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem with "Custom Widget Plugin Example"
Qt 6.11 is out! See what's new in the release blog

Problem with "Custom Widget Plugin Example"

Scheduled Pinned Locked Moved General and Desktop
13 Posts 2 Posters 3.5k Views 1 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    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.

    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
      M001
      wrote on last edited by
      #3

      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?

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

        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

        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
          M001
          wrote on last edited by
          #5

          the Custom Widget Plugin Example is not in the example files. but there is an other example that creates the same Error Message.

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

            Did you open it from QtCreator ?

            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
              M001
              wrote on last edited by
              #7

              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?

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

                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

                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
                  M001
                  wrote on last edited by
                  #9

                  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!

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

                    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

                    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
                      M001
                      wrote on last edited by
                      #11

                      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?

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

                        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

                        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
                          M001
                          wrote on last edited by
                          #13

                          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?

                          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