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. [Solved]Designer Plugin Template crashes Designer
Forum Updated to NodeBB v4.3 + New Features

[Solved]Designer Plugin Template crashes Designer

Scheduled Pinned Locked Moved Qt Creator and other tools
7 Posts 3 Posters 3.6k 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.
  • B Offline
    B Offline
    babazaroni
    wrote on last edited by
    #1

    Hello,

    I'm learning about custom widget plugins. I created a project from the Custom Designer Widget template. Compiled and copied the libxxx.dylib to the designer plugin directory. But, Designer is now crashing.

    Is there some needed code to keep it from crashing?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      babazaroni
      wrote on last edited by
      #2

      I've also tried the Custom Widget Plugin example by copying the libcustomwidget.dylib to the designer/plugin directory. Designer crashes on startup. I must be missing a step, like maybe Designer needs to find the lib that implements the class.

      BTW, I'm working on a locally compiled version installed to usr/local/trolltech.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Maybe there is a bug in your code (hard to tell without seeing the code)? Have you tried to debug the plugin?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          babazaroni
          wrote on last edited by
          #4

          I've made no changes to the example plug-in. I expect the shipping examples to work, but I've read that plug-in can be quite delicate. Yeah, time to get the debugger going.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            Just tried with Qt 4.7.3 compiled manually, installed in /usr/local/Trolltech/Qt-4.7.3

            @
            cd /path/to/qt-everywhere-VERSION-src-4.7.3/examples/designer/customwidgetplugin
            qmake
            make
            sudo make install
            @

            That's all and it works like a charm.

            Are your Designer and Qt versions matching?

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • B Offline
              B Offline
              babazaroni
              wrote on last edited by
              #6

              Thanks, Volker. Your solution example helped me figure it out. The make install was installing to /Applications/developer/qt. The Designer in /Applications/developer/qt was a binary download and it crashes. When I move the dylib to the /usr/local/Trolltech install, the Designer there does not crash. Both Designers are 4.7.3, but one is a binary install and the other compiled.

              BTW, I'd like for make install to install to /usr/local/Trolltech. Is there an easy way to manage the Qt environment variables? Would be nice at least if there was a web link that listed them and how to change them.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #7

                For our plugins we have this in the .pro. It installs the plugin into the right path, depending on the version it was built with:

                @
                INSTALLS += target
                target.path = $$[QT_INSTALL_PLUGINS]/designer
                TEMPLATE = lib
                CONFIG += debug warn_on qt thread exceptions rtti designer plugin
                @

                http://www.catb.org/~esr/faqs/smart-questions.html

                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