How I can override the minimize button?
Solved
General and Desktop
-
I know that I can override the closeEvent slot, but is there's a slot smth like minimizeEvent?
-
void MainWindow::changeEvent(QEvent *event) { if (event->type() == QEvent::WindowStateChange) { if (isMinimized()){ // it was minimised } else{ // it's normal or maximised } } return QMainWindow::changeEvent(event); }
source: https://forum.qt.io/topic/20243/solved-minimize-event/13
-
If your issue is solved please mark the topic as solved, see https://forum.qt.io/topic/71830/hitchhiker-s-visual-guide-to-the-qt-forum
-
http://doc.qt.io/qt-5/qtoolbutton.html with setMenu()
-
@VRonin https://blog.kitware.com/give-your-cute-qt-gui-some-pop/
I want to have smth like this, can I achieve this using the qtoolButton?