Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <QtWidgets>
- #include <iostream>
- int main(int argc, char** argv)
- {
- QApplication a{argc, argv};
- QLineEdit lineEdit;
- lineEdit.setText("Test");
- QObject::connect(&lineEdit, &QLineEdit::textChanged, [&](){
- std::cout << lineEdit.text().toStdString() << std::endl;
- });
- lineEdit.show();
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement