Unsolved problem with promoting widget.
I add new qt designer form class (class name Form) and add one label in there . when i simply promote from mainwindow 's widget , trow me a vague error:
LNK2019: unresolved external symbol "public: __cdecl Form::Form(class QWidget *)" (??0Form@@QEAA@PEAVQWidget@@@Z) referenced in function "public: void __cdecl Ui_MainWindow::setupUi(class QMainWindow *)" (?setupUi@Ui_MainWindow@@QEAAXPEAVQMainWindow@@@Z)
Make sure your Form widget does in fact have a constructor taking
Form::Form(class QWidget *)
Else we need to see some code to give guesses :)
Yes. it has it. Form class createed by dafault, only i add button in ui. Also mainwindow class is empty, only add widget, then promote it. what do i miss?
Not sure, it sounds ok. Without code its just random guesses..
I can make u fast sample for test.
you are welcome. when i run my project after yours, it works, I dont know why but woks now :D very thanks
Ok that is odd :)
Maybe try run qmake manually.
Only thing i can think of.