I have been learning Qt for several weeks and I just created a text editor followed by the lab exercise.
Everything go well until I did a stupid action, that is:
- Double Click the mainwindow.ui and go to the Qt designer
- Right Click the center widget which is actually the QTextEdit, and choose the item "Size constraints",
- Click the Item "Set Maximum Size"
Then the problem occurred, I couldn't make the application maximum any more.
The icon is disabled that I couldn't click to maximize.
And I tried to set the window flags, but it didn't work.
Please help me to figure out why and how to fix, Thanks.