[SOLVED] QDesignerCustomWidgetInterface Compiler errors when calling setupUi(this)
-
Hi everyone!
I have integrated a custom widget within QtDesigner, using the plugin approach. When creating a form which uses this widget, from Designer alone from scratch, and integrate it in my project .pro with
@FORMS += ../newWidget.ui@
I get after compilation three errors:
@error: expected type-specifier before 'newWidget'
error: cannot convert 'int*' to 'newWidget*' in assignment
error: expected ';' before 'newWidget'@But when using the newWidget from a new project with a generated form, I get no errors. I can't find the reason... Any ideas?
Thanks in advance
-
Well, I think I haven't explained myself very much... The newWidget I'm talking about is produced from myWidget.h and myWidget.cpp. Both files are located in a folder named customWidget. Then I have a project, myWidgetPlugin, which creates the lib for this widget adding to it the existing files. Until here everything seems all right (libmywidget.so is generated and loaded correctly in QtDesigner).
Then with QtDesigner I create a form which I saved as newWidget.ui, and one of its widgets is the custom widget I created before. But after I import this .ui to another project is when I get those errors messages, from the generated uic file ui_newWidget.h.
Thanks!