John82
17th November 2009, 17:36
This is a continuation from my previous post :
http://www.qtcentre.org/forum/f-qt-tools-3/t-custom-widget-not-visible-in-integrated-designer-of-qt-creator-25741.html
After creating a custom widget called "MyClock", I added it to a form and tried to compile it. But unfortunately I am getting build errors :
mainwindow.cpp:(.text._ZN13Ui_MainWindow7setupUiEP 11QMainWindow[Ui_MainWindow::setupUi:-1: error: undefined reference to `MyClock::MyClock(QWidget*)'
I added the include path of MyClock.h to the build environment, but the generated Makefile is not reflecting this path.
On a sidenote, I tried adding some of the example plugins like tic tac toe and world clock provided in the Display Widgets [ Examples ] group of Qt Designer. All of them give me the same errors while trying to build the app.
http://www.qtcentre.org/forum/f-qt-tools-3/t-custom-widget-not-visible-in-integrated-designer-of-qt-creator-25741.html
After creating a custom widget called "MyClock", I added it to a form and tried to compile it. But unfortunately I am getting build errors :
mainwindow.cpp:(.text._ZN13Ui_MainWindow7setupUiEP 11QMainWindow[Ui_MainWindow::setupUi:-1: error: undefined reference to `MyClock::MyClock(QWidget*)'
I added the include path of MyClock.h to the build environment, but the generated Makefile is not reflecting this path.
On a sidenote, I tried adding some of the example plugins like tic tac toe and world clock provided in the Display Widgets [ Examples ] group of Qt Designer. All of them give me the same errors while trying to build the app.