What I did was override the keyPressEvent:
Qt Code:
if (event->key() != Qt::Key_Escape) { } else { close(); } }To copy to clipboard, switch view to plain text mode
Then this fires the closeEvent() which you can then work with there. But perhaps the above solution is easier.




Reply With Quote



Bookmarks