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] QtDesigner will not load a plug-in even when I try to Force it
Forum Updated to NodeBB v4.3 + New Features

[Solved] QtDesigner will not load a plug-in even when I try to Force it

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

    Hi I'm having a problem getting QtDesigner to load a particular plugin. I'm using Arch Linux (64-bit) with Qt 4.8.0-2 from Arch Linux's repository. The QtDesigner version is 4.8.0

    The Steps I followed:

    1. I built and installed the VTK library (Debug build) ( "http://www.vtk.org/":http://www.vtk.org/ ) with QT support. The library provided a widget "QVTKWidget" with an associated plugin for QtCreator.

    2. The plug-in resides at
      /usr/local/plugins/designer/libQVTKWidgetPlugin.so

    3. In a terminal I ran
      $ export QT_PLUGIN_PATH=/usr/local/plugins/designer/
      $ export QT_DEBUG_PLUGINS=1
      $ designer

    Then I go to "Help > About Plugins" and QVTKWidget is not there. The debug output shown by the QT_DEBUG_PLUGINS option does not show any attempt to load the library.

    But if I try
    $ export QT_PLUGIN_PATH=/usr/lib/kde4/plugins/
    $ designer

    Then QtDesigner will load KDE's plugins and I can see its widgets.

    I found a way to get QtCreator to load the "QVTKWidget" plugin which is by making a symbolic link to the library in Qt's plugin directory...
    $ ln -s /usr/local/plugins/designer/libQVTKWidgetPlugin.so /usr/lib/qt/plugins/designer/libQVTKWidgetPlugin.so
    $ export QT_DEBUG_PLUGINS=1
    $ designer

    The debug output doesn't show that the plugin was loaded which is weird, however when I go to "Help > About Plugins" I can see "QVTKWidget". This method unfortunately isn't acceptable because I don't have root access on the machine that I will be doing development on.

    Does anyone know why I can't force QtCreator to load the "QVTKWidget" plugin?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      delcypher
      wrote on last edited by
      #2

      I appeared to have fixed my own problem. It appears that QtDesigner looks requires there to be a "designer" folder in the path in in QT_PLUGIN_PATH . So I should of done

      $ export QT_PLUGIN_PATH=/usr/local/plugins/

      instead of

      $ export QT_PLUGIN_PATH=/usr/local/plugins/designer/

      Problem solved :)

      1 Reply Last reply
      0
      • I Offline
        I Offline
        IgnitedSam
        wrote on last edited by
        #3

        Thank, but what is the PATH that works for Windows?

        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