QMainWindow maximize
-
how to handle the window maximization ?
for example when user click maximize I want some object to be in bigger size like TextEdit, while the other object don't change -
I'm assuming that you are using the layout to display the elements. Which are the other widgets you have in display ? Did you look at the stretch factor for widget while adding them to layout ? This should help you.
-
I mean handling the main window maximize button
-
ok. Did you look at QEvent::WindowStateChange event ?
-
I search for the QEvent, but i did not found any thing about maximization
I just found the QSize: sizeIncrement, but I'm not sure how to write the correct code -
Did you get a chance to look at QEvent::WindowStateChange and Qt::WindowMaximized and implement event(...) method in your MainWindow class ?