C++ (Qt) QObject::connect(this->ui->btnOk, SIGNAL(pressed()), SIGNAL(accept())); QObject::connect(this->ui->leCount, SIGNAL(returnPressed()), SIGNAL(accept()));
C++ (Qt)QObject::connect(this->ui->leCount, SIGNAL(returnPressed()), this->ui->btnOk, SIGNAL(pressed()));
Invalid read of size 4at 0x04c2b2cd: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/libQtCore.so.4.7.2)by 0x0485b706: QLineControl::editingFinished() (in /usr/lib/libQtGui.so.4.7.2)by 0x045d2498: QLineControl::processKeyEvent(QKeyEvent*) (in /usr/lib/libQtGui.so.4.7.2)by 0x045c65e7: QLineEdit::keyPressEvent(QKeyEvent*) (in /usr/lib/libQtGui.so.4.7.2)Address 0x9458894 is 4 bytes inside a block of size 132 free'dat 0x04025907: operatorby 0x0485bb81: ??? (in /usr/lib/libQtGui.so.4.7.2)by 0x045cd4af: ??? (in /usr/lib/libQtGui.so.4.7.2)by 0x04c2d3ef: QObject::~QObject() (in /usr/lib/libQtCore.so.4.7.2)
C++ (Qt) if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) { if (hasAcceptableInput() || fixup()) { emit accepted(); emit editingFinished(); } if (inlineCompletionAccepted) event->accept(); else event->ignore(); return; }