Merge pull request #7347 from spycrab/qt_fix_visibility Qt: Fix widgets being visible when they shouldn't be