class MyInputDigit :public QInputDialog{public: MyInputDigit(QWidget *parent = 0):QInputDialog(parent) { } void keyPressEvent(QKeyEvent *event) { ShowMessage("text"); }};
bool bOk; MyInputDigit::getText( 0, "Ввод:", "ВВЕДИТЕ НОМЕР", QLineEdit::Normal, "", &bOk);
class MyInputDigit :public QInputDialog{public: MyInputDigit(QWidget *parent = 0):QInputDialog(parent) { } void textValueChanged(const QString &text) { ShowMessage(text); }};
class MyInputDigit :public QInputDialog{public: MyInputDigit(QWidget *parent = 0); void textValChanged();};
MyInputDigit::MyInputDigit(QWidget *parent):QInputDialog(parent){ connect(this, SIGNAL(textValueChanged(const QString &text)), this, SLOT(textValChanged()));}void MyInputDigit::textValChanged(){ ShowMessage("text");}
MyInputDigit *Inp = new MyInputDigit; Inp->exec();
class MyInputDigit :public QInputDialog{public: MyInputDigit(QWidget *parent = 0);public slots: void textValChanged();};