PDA

View Full Version : How to connect signal/slot in QItemEditorFactory?



yyalli
16th April 2010, 16:26
How can I connect signals from editors registered by using QItemEditorFactory?

In the following coloreditorfactory example,

QItemEditorFactory *factory = new QItemEditorFactory;

QItemEditorCreatorBase *colorListCreator =
new QStandardItemEditorCreator<ColorListEditor>();

factory->registerEditor(QVariant::Color, colorListCreator);

QItemEditorFactory::setDefaultFactory(factory);


I want to connect currentIndexChanged signal from QComboBox which ColorListEditor is subclassed but don't know how. Any comment or advice will be greatly appreciated.

Daxos
4th June 2010, 14:56
I have the same problem. Can anyone help us?