Hi All,
I have created a custom dialog to accept name(line-edit) and phone-number(line-edit) from user.
I want to handle double click event on line edit for number entry.
i am able to get the mouse double click event on Dialog but not onthe line-edit.
Below is the code. please check for error/modification.
class MYDialog : public QDialog
{
Q_OBJECT
protected:
private slots:
public:
explicit Dialog(QWidget *parent = 0);
~Dialog();
void mouseDoubleClickEvent ( QMouseEvent * event);
QString *val_from_numpad;
private:
Ui::Dialog *ui;
};
void MYDialog::mouseDoubleClickEvent ( QMouseEvent * event)
{
//event;
qDebug() << "Double click event on line edit";
}
Thanks in Advance
Bookmarks