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. How to Blink/Flash the non active window
Forum Updated to NodeBB v4.3 + New Features

How to Blink/Flash the non active window

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.5k 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.
  • P Offline
    P Offline
    prankur.sarbhai
    wrote on last edited by
    #1

    Hi,

    I am working on a chat application. I am using the following code to Blink/Flash the window (which i find in some other post)

    @FLASHWINFO finfo;
    finfo.cbSize = sizeof( FLASHWINFO );
    finfo.hwnd = this->winId();
    finfo.uCount = 20;
    finfo.dwTimeout = 400;
    finfo.dwFlags = FLASHW_ALL; //Flash window and tray icon
    FlashWindowEx( &finfo );@

    This works for most of the cases except one that if my window is not an Active window then it blinks on tray icon. Window doesn't blink.

    Scenario is that i have 2 chat window opened and one is active and i have to blink the other one which is not active window.

    Can someone please explain me if i am doing something wrong or is it qt Framework limitation. How can i solve this problem.

    Thanks
    Prankur

    1 Reply Last reply
    0
    • T Offline
      T Offline
      treenn
      wrote on last edited by
      #2

      It works fine in Win XP, for both active and inactive windows. Maybe it's a "feature" of your version of Windows.
      There is also a function for that in Qt (QApplication::alert), but internally it also calls FlashWindowEx, only works for inactive windows, and only flashes the taskbar button.

      1 Reply Last reply
      1

      • Login

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