PDA

View Full Version : [SOLVED] QFontComboBox signals



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

saa7_go
30th July 2010, 14:00
There is no QFontComboBox::curentFontChanged() signal, but QFontComboBox::currentFontChanged(const QFont &font).

ale6111
30th July 2010, 14:06
Thanks my mistake.