PDA

View Full Version : QDesignerCustomWidgetInterface:No such file or directory



furskytl
17th September 2011, 14:43
When I include <QDesignerCustomWidgetInterface> in one of my class,it is said that "No such file or directory"!What's wrong?What should I do?I need to integrate a custom widget into Qt Designer,so I need to subclass QDesignerCustomWidgetInterface!Thanks very much!

llev
17th September 2011, 23:17
Try to add the following line to your app's .pro file:


CONFIG += designer

furskytl
18th September 2011, 13:18
That's incredible!!!It works correctly after I take your advice!Can you tell me the reason?Why the book <C++ GUI Programming with Qt4> does not tell me!!!Thanks very much!