Thanks so much for  "promote to custom widget" tip..even though I didn't write 
about it. I had that problem.. Thanks!!!

-----Original Message-----
From: Aurélien Gâteau [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 14, 2006 3:45 AM
To: Jaya Meghani
Cc: wengophone-devel@lists.openwengo.com
Subject: Re: [Wengophone-devel] Using Custom Control

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
Wengophone-devel@lists.openwengo.com
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to