View Full Version : QDesignerCustomWidgetInterface:No such file or directory

17th September 2011, 15: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!

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

CONFIG += designer

18th September 2011, 14: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!