I have subclassed QTableWidget and have made a designer plugin called EnhancedTableWidget.
I have successfully compiled the designer plugin and copied the two files
enhancedtablewidget.dll
libenhancedtablewidget.a
to the $QTDIR\plugins\designer directory.
I can create a new form with my new widget on it.
When I try and compile a simple example using Maluta's main.cpp I get the following error:
release\main.o(.text+0x267):main.cpp: undefined reference to `EnhancedTableWidget::EnhancedTableWidget(QWidget* )'
Here is my current .pro file
TEMPLATE = app
QT += sql
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += enhancedtablewidget.h
FORMS += form.ui
SOURCES += main.cpp
LIBS += C:/Devel/Qt/4.2.0/plugins/designer/libenhancedtablewidgetplugin.a
TEMPLATE = app
QT += sql
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += enhancedtablewidget.h
FORMS += form.ui
SOURCES += main.cpp
LIBS += C:/Devel/Qt/4.2.0/plugins/designer/libenhancedtablewidgetplugin.a
To copy to clipboard, switch view to plain text mode
I am using Qt4.2.0 on Windows XP with mingw.
Thanks,
Royce
Bookmarks