danial weaber
danial weaber

Reputation: 876

installing a qt widget for qt designer

I downloaded a very useful widget for my applications. A LED indicator from http://qt-apps.org/content/show.php/QLedIndicator?content=118610

But there is no README file or any instruction files.

I unzip it and gave qmake QLedIndicator.pro and then make it compiled well without errors.

But I have no idea how to add the widget in Qt Designer, so I can drag and drop it where I need.

I'm using qt 4.8.3 with mingw. qt creator 2.6.0

Upvotes: 2

Views: 5572

Answers (2)

user1092803
user1092803

Reputation: 3277

Under Linux you just need to copy the file libQLedIndicatorPlugin.so in the

/usr/lib/qt/plugins/designer/

directory (or whatever is the directory on your distro).

Under Windows the process is similar, but you need to pay attention to the building process, as explained on the bottom of the page I linked

Upvotes: 3

Gaurav Raj
Gaurav Raj

Reputation: 708

Qt's plugin architecture allows you to add custom widget to the designer. You can check out this official qt's link to do so - http://doc.qt.digia.com/4.7/designer-customwidgetplugin.html

Upvotes: 2

Related Questions