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. Position popup window on bottom-right above taskbar?
Forum Updated to NodeBB v4.3 + New Features

Position popup window on bottom-right above taskbar?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 441 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.
  • T Offline
    T Offline
    Taytoo
    wrote on last edited by
    #1

    Is there a convenience method to position a top-level window on bottom-right of the desktop, just above taskbar - as is common on windows platform with notification windows?

    I tried using frameGeometry() to get current window size (including frame), however, it returns incorrect size Until the window is shown. If I move the window after calling show(), then there is flicker on the screen, which doesn't look good.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Before window is shown there is no window or frame so there is no (valid) frame size. To mitigate the flicker you can replace show with showMinimized, then adjust window's geometry and then call show or setWindowState to actually show it. Another option is to move the window to some out of view coordinates before showing it (eg. take screen geometry and add some), then show it, take the frame geometry and use it to move the window where you want it.

      1 Reply Last reply
      3
      • T Offline
        T Offline
        Taytoo
        wrote on last edited by
        #3

        Yes, seems like these are the only two options.

        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