ale6111
30th July 2010, 13:55
Hi,
I need to know when the user change the font in a QFontComboBox and in case to call the slot changeTextFont(). I have
QFontComboBox *fontComboBox = new QFontComboBox(this);
connect(fontComboBox, SIGNAL(currentFontChanged()), this, SLOT(changeTextFont()));
but it doesn't work, I get this message in console
Object::connect: No such signal QFontComboBox::currentFontChanged()
What am I doing wrong?
Thanks
I need to know when the user change the font in a QFontComboBox and in case to call the slot changeTextFont(). I have
QFontComboBox *fontComboBox = new QFontComboBox(this);
connect(fontComboBox, SIGNAL(currentFontChanged()), this, SLOT(changeTextFont()));
but it doesn't work, I get this message in console
Object::connect: No such signal QFontComboBox::currentFontChanged()
What am I doing wrong?
Thanks