Jaya Meghani wrote:
Hi,
I want to use Custom Control - EnhancedTabWidget which is derived from
QTabWidget and use it in WengoPhoneWindow.ui.
I added it to SConscript file in "\wengophone\src\presentation\qt"
I have Q_OBJECT macro in my class EnhancedTabWidget so i moc it manually
and place it in \release-symbols\wengophone\src\presentation\qt
Hum... this is almost always a bad idea. The link errors you get are
probably caused by the fact that the build system is not aware of your
"moc"ed file.
To integrate your code in the build system, you should
- open the src/wengophone/presentation/qt/SConscript file
- add the .h to the "headers" array
- add the .cpp to the "sources" array
Another question: How did you integrate your widget in the UI file? the
best way to do so is to add a QTabWidget, then right click on it and
select "promote to custom widget".
Aurélien
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel