I'm using the latest stable version of Qt 5 built statically with GCC 4.8 on Windows 8.
I've created a simple QMainWindow-based application with just one button. When I do setFixedSize(minimumSizeHint())
the window gets resized as I want it to and the maximize button gets disabled, but I can still see the double-sided arrows, when I hover my pointer over the edges, and I can resize the window vertically by 14 pixels. If add another button or a status bar - nothing changes. If I add 14 pixels (or more) to the minimum height - it becomes truly fixed, but I can still see the arrows, which isn't normal.
This is very weird, because absolutely the same code (and its variations) works perfectly well in PyQt4 (please, note, I use C++ now). I tried:
layout()->setSizeConstraint(QLayout::SetFixedSize)
- same behaviorsetWindowFlags(Qt::MSWindowsFixedSizeDialogHint)
- the window just disappears
Any way to fix this?
UPD: I was wrong about adding another button (apparently, it isn't the same as adding a status bar) - it isn't possible to resize the window anymore (though, why would Qt let me set the height of the window less than it likes...), but the arrows are still there.
UPD 2: Found a very similar question, but the answer didn't help (for the reasons described in a comment to the question itself).