PDA

View Full Version : How to reduce adding custom slot from my designed widget when used in other xxxx.ui?



rswa
22nd September 2012, 00:40
I have a custom widget (name "TestWidget")with some custom slots and signals.
And add custom slots and signals to TestWidget.ui.
But I need to add custom slots and and signals when using the TestWidget in XXXX.ui.
Is there any convenient to reduce these operation ?

Zlatomir
22nd September 2012, 16:06
I think you should add to the ui only the generic stuff (by 'generic' i mean the things that make sense for all the use-cases of that ui class) and then you can add all use-case the specific things in the places you use that ui file.