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. Flags Windows 7 window always on top INCLUDING the Win7 taskbar (Custom error)
Forum Updated to NodeBB v4.3 + New Features

Flags Windows 7 window always on top INCLUDING the Win7 taskbar (Custom error)

Scheduled Pinned Locked Moved General and Desktop
4 Posts 1 Posters 1.7k 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.
  • C Offline
    C Offline
    cvan997
    wrote on last edited by
    #1

    I know a few flags that make the window always on top (eg Qt :: ToolTip, Qt :: WindowStaysOnTopHint, Qt :: Popup), but each time the method is the same problem.

    By clicking on the start menu, the area tray, empty field between programs and tray - window and so is hiding.

    Everything is fine when I switch between different applications and I click anywhere except the above-mentioned places.

    Just run other applications that I used to use, so it might be a function of the uninvited Windows.

    Code does not make sense given, because at the same time where do dumb mistake, and indeed act as a flag to be apart of this "small" problem.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cvan997
      wrote on last edited by
      #2

      At a forum got the answer that WinApi this effect can be achieved by:
      SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE);

      Now the question is how to move to QT?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        cvan997
        wrote on last edited by
        #3

        These things work:
        HWND hWnd = reinterpret_cast<HWND>(this->winId());
        SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);

        But it turns out that exactly the same as the flag of the subject. : (

        Explanation of what exactly is the problem:
        http://youtu.be/k5TCtr1hPKY

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cvan997
          wrote on last edited by
          #4

          The solution is, regular exercise such thing:
          @ if(this->isActiveWindow() == false} {
          this->raise();
          }@

          Only the minimized window does not always work, but to me it is unnecessary.

          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