Hi,

I have a subclassed QDialog and I implemented a QSystemTrayIcon for it, with some Show/Hide options.
What I want to do is to minimize the window to the tray when the minimize button is clicked. I managed to do it for the close button by reimplementing QDialog::closeEvent () but I want to do it for the minimize button.

So any solutions?

Thanks