Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Toggle Window Frames (Qt::FramelessWindowHint) in Qt 5.4.1
Forum Updated to NodeBB v4.3 + New Features

Toggle Window Frames (Qt::FramelessWindowHint) in Qt 5.4.1

Scheduled Pinned Locked Moved General and Desktop
qtframelesswindtoggle window fqt 5.4.1bug
7 Posts 4 Posters 3.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xcessity
    wrote on last edited by
    #1

    Hi,

    I recently switched to Qt 5.4.1 from 5.4.0.

    Basically I have a QDialog window, where the user can toggle the window frames. So I add and remove the Qt::FramelessWindowHint flag.

    When using Qt 5.4.1 MSVC2013 x64 on a Windows 8.1 machine this results in a wired behavior. After adding and removing the FramelessWindowHint flag, the contents of the window is off. It does not display the full contents and cuts off the included widgets on the right and bottom window edges.

    I made some screenshots of a simple example. A QMainWindow including only one button. The button toggles the FramelessWindowHint flag off and on. Also re-sizing the Window does no show the full contents.

    Here is what happens:
    initial state picture
    flag set picture
    flag removed (error) picture

    Best,
    Markus

    1 Reply Last reply
    0
    • cybercatalystC Offline
      cybercatalystC Offline
      cybercatalyst
      wrote on last edited by
      #2

      Hm, did you try to hide and show the windows after you have altered the flag? Looks like some updating issue.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xcessity
        wrote on last edited by
        #3

        Hi,

        the window gets hidden when setting this flag. I also tried hiding and showing it a few times, nothing changes.

        Best,
        Markus

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi and welcome to devnet,

          Just to be sure, is this a new behavior with Qt 5.4.1 ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • X Offline
            X Offline
            Xcessity
            wrote on last edited by
            #5

            @SGaist Yes, as far as I can tell. With Qt 5.4.0 MSVC 2013 x64 all works fine. The same package in version 5.4.1 causes trouble and cuts the window contents off.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then this might be regression. You should take a look at the bug report system to see if it's something known. If not, please consider opening a new report providing a minimal compilable example that helps reproduce this behavior.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • P Offline
                P Offline
                Ph0t0n
                wrote on last edited by Ph0t0n
                #7

                I am having this exact same problem with Qt 5.6.0. After seeing this thread, it's apparent that this bug has been present for several years.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved