I want to disable maximize button in Qt
I tried
setWindowFlags( (windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMaximizeButtonHint);
In ui-> setupUi (this);
setWindowFlags(Qt::Window | Qt::WindowMinimizeButtonHint | Qt::WindowCloseButtonHint);
SetWindowsFlags (); didn't work for me on Ubuntu 16.04, but under ui-> setupUi (this) I added this line:
setFixedSize(width(), height());
and it works great.
Source: https://habr.com/ru/post/1648524/More articles:How to quickly check the approximative algorithm? - haskellКак обновить пользователя с помощью displayName - swiftСоздайте iframe только с javascript - javascriptКак я могу сделать Bootstrap div полной? (на основе экрана) - htmlSelect top ranked overlapping SQL segment - sqlR-Find unique permutations of values - sortingHow to rename a path in response to padding - node.jsHaskell: Get monad Get, and also return polymorphism by infinite types - serializationFacebook Instant Article custom embed doesn't make requests - javascriptКак установить высоту диаграммы с ng2-диаграммами - angularAll Articles