New video windows does not open in front



  • 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



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.