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. Advice on bulding a frameless window QT application
Forum Updated to NodeBB v4.3 + New Features

Advice on bulding a frameless window QT application

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.6k Views 1 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.
  • J Offline
    J Offline
    joshua-anderson
    wrote on last edited by
    #1

    Hello!

    I'm trying to build a qt application with no window frame. I am experimenting with many solutions and am having trouble with resizing specifiacally(I want to be able to resize on all sides, so I'm not using a grip). Right now I am using the boarderlless window flag but that also plays havok with window managers. How would you guys go about building a frameless window. Has anyone done it successfuly? I would be nice if you could do somehting like hide the taskbar (so I still get all the windowing behavior that comes with a framed window, like snap resizing).

    Thanks for all of the advice!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vittalonline
      wrote on last edited by
      #2

      setWindowFlags(screenOne->windowFlags()| Qt::FramelessWindowHint);
      setWindowFlags(windowFlags()|Qt::WindowStaysOnBottomHint);

      1 Reply Last reply
      0
      • J Offline
        J Offline
        joshua-anderson
        wrote on last edited by
        #3

        I'm currently using this for my window flags, but this comes with many problems, mostly that the way qt draws when resizing from the top it causes a notable delay for drawing, making it look like the window is jittering. Every platform can make resizeble boarderless windows, like on windows you override the drawing loop to make it stop before the window boarder is drawn. I was wondering if there was any other way to make a boarderless window that is less glichy.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joshua-anderson
          wrote on last edited by
          #4

          I heard that setmask(rect) can cover over the windows boarder, has anyone have any advice on that

          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