I am working with QClipboard object under windows 10. Trying to write to the system clipboard using setText(), but it doesnt seem to work-getting empty clipboard. Here is the piece of code:
QClipboard *pClipboard = QApplication::clipboard();
pClipboard->setText(someText);
pClipboard->text() //to get text from clipboard
Am I missing something here? However, getting text from the clipboard is working.