smallB
smallB

Reputation: 17138

Creating plugin in qt

Guys from book "C++ GUI programming with qt" I'm reading a chapter on how to create your own plugin i.e. customized button. There, they mention header: #include < QDesignerCustomWidgetInterface> but in qtcreator 4.7 I'm getting error that this file does not exists. Any thoughts on that?

Upvotes: 2

Views: 259

Answers (2)

pnezis
pnezis

Reputation: 12331

Check this example in order to see how you should create a new designer plugin.

You need to do the following:

 CONFIG      += designer plugin
 TEMPLATE    = lib

You also have to specify the target path as following:

target.path = $$[QT_INSTALL_PLUGINS]/designer
INSTALLS += target

Upvotes: 2

Ralf
Ralf

Reputation: 9573

That header resides in << QtInstallDir >>/include/QtDesigner/. Have you added that directory to your include path?

Can you verify that the file exists?

Upvotes: 1

Related Questions