Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Combo box UP/DOWN arrow keys not working properly
Himanshu charde last edited by Himanshu charde
void TextEdit::UP_DOWN_arrow_font_changed(int index)
void TextEdit::textSize(const QString &p)
qDebug(PriorityP1())<<"TextEdit Font Size before" << p.toInt();
qreal pointSize =(p.toFloat()) ;
qDebug(PriorityP3())<<"TextEdit Font Size after" << pointSize << (p.toFloat());
if (p.toFloat() > 0)
bSizeChanged = true;
@Himanshu-charde "not working properly" - what does this mean exactly?
@jsulm actually when the signal is emitted by highlightened(), then the size of font is changing properly. And at the time i use keyboard UP/DOWN key for which i used activated() signal to change the content of combo box it is not working
@Himanshu-charde Did you make sure connect() succeeded?
Did you make sure slot was called?
Did p.toInt() succeed?
yeah it is all working even textSize() function is also getting called but dont know where it is stucked
@Himanshu-charde So, what is the value of pointSize in qreal pointSize =(p.toFloat()) ?
@jsulm it depend on the current size like 17 or 18