How to get Mouse Click event on QComboBox
-
I want to know , when the QComboBox has been clicked by mouse other than using pos() or GlobalPos() function.
i used the following code to do, but nothing is positive...
@
// with this function , i am not able to get the combobox click event
void TestDlg::mousePressEvent(QMouseEvent *aE)
{
qDebug() << ": btn" << aE->button() <<aE->type()
<< "btns" << aE->buttons()
<< "mods" << aE->modifiers()
<< "gpos" << aE->globalPos() << "pos" << aE->pos();
//QComboBox::mousePressEvent(aE);}
@