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. New video windows does not open in front
Qt 6.11 is out! See what's new in the release blog

New video windows does not open in front

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 813 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.
  • K Offline
    K Offline
    Kavita123
    wrote on last edited by
    #1

    Hello all,

    I am using QT creator 5.4 on Windows 7 machine.

    I am opening a child window upon clicking a button. If I open some application say Chrome before clicking this button, and then go to my application and click button, the new window gets opened but it does not come to front.
    With below code, I am able to make it blink.
    ui->VideoWidget->activateWindow();
    ui->VideoWidget->raise();

    But what should I do to make it display in proper size and not just blink ?

    -Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Munteanu Marian
      wrote on last edited by
      #2

      @
      #ifdef _WIN32
      ShowWindow((HWND) ui->VideoWidget->winId(), SW_MINIMIZE);
      ShowWindow((HWND) ui->VideoWidget->winId(), SW_MAXIMIZE);
      #endif
      @

      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