Congratulations to our 2022 Qt Champions!

Unable to run application with Custom Widget

  • I created a custom Widget plugin (using the example AnalogClock) for the Designer which works fine. I am now having trouble using it in my application.

    I create my ui file using the Designer dragging my new Custom Widget.
    added the LIB += ... for the custom widget to the pro file.

    builds fine but get a runtime error for not finding the .dll for the custom widget

    Any help would be appreciated. (if you can show me how to use the AnalogClock widget that would work too)


  • Die you copy your plugin dll to your application.

    Also you can build a (static) lib of your custom widget (without the designer plugin code) that you can link your application against.

Log in to reply