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 activate new window when another window is in full screen mode.
Forum Updated to NodeBB v4.3 + New Features

How to activate new window when another window is in full screen mode.

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 2.2k 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
    psbhardwaj09gmail.com
    wrote on last edited by
    #1

    Hi,

    I have an video chat application. In this when video window is in full screen mode & i want to show new window. My window is shown on top but i am unable to click any of window's button i.e window is shown but it is not active.
    i use the following code in new window
    @ mpIncomingCall->setFocus();
    mpIncomingCall->show();
    mpIncomingCall->raise();
    mpIncomingCall->activateWindow();@

    So how can i do so. Can anyone suggest me for this.

    Regards,
    Pardeep

    Pardeep Sharma

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Not sure if this will help, but you can try setting Qt::WindowStaysOnTopHint on your mpIncomingCall widget. See "WindowFlags":http://qt-project.org/doc/qt-4.8/qt.html#WindowType-enum docs.

      (Z(:^

      1 Reply Last reply
      0
      • P Offline
        P Offline
        psbhardwaj09gmail.com
        wrote on last edited by
        #3

        I have been used Qt::WindowStaysOnTopHint but its not working in my case.

        Pardeep Sharma

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Right. Then what about making your fullscreen window frameless and maximised, but not actually fullscreen? Then the dialog should be working as expected.

          (Z(:^

          1 Reply Last reply
          0
          • P Offline
            P Offline
            psbhardwaj09gmail.com
            wrote on last edited by
            #5

            Hi Sierdzio,

            I am creating a frameless & maximised widow of Desktop screen size & displaying it from screen's starting coordinates. Even other window is on top but i am unable to pressed its button . since the other window is displaying video so i think its an active window as it keep refreshing the video. One more thing when i hover mouse over button its color is changed.

            Pardeep Sharma

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Ah, ok, I thought you have used QWidget::showFullScreen().

              (Z(:^

              1 Reply Last reply
              0
              • B Offline
                B Offline
                b1gsnak3
                wrote on last edited by
                #7

                Does your maximized window grab mouse & keyboard events by any chance?

                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