In your original code your UI became unresponsive because you blocked the main thread in waitForReadyRead()
In Qt most I/O is asynchronous for the very purpose of not blocking the main thread
Also, you don't need a lambda here
connect(buttonsearch, &QPushButton::clicked, [this]() {process(); });
connect(buttonsearch, &QPushButton::clicked, [this]() {process(); });
To copy to clipboard, switch view to plain text mode
you can directly connect to the process() function
connect(buttonsearch, &QPushButton::clicked, this, &mainWindow::process);
connect(buttonsearch, &QPushButton::clicked, this, &mainWindow::process);
To copy to clipboard, switch view to plain text mode
Cheers,
_
Bookmarks