You included <QDesignerCustomWidgetInterface> and had "CONFIG += designer" in .pro?