Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Previous screen inactive.

Previous screen inactive.

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.4k Views
  • 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.
  • J Offline
    J Offline
    Julie1986
    wrote on last edited by
    #1

    Hello, I have two screens, for ex. onclicking a button i move to a differnt screen(second screen) which overlaps the first screen. But i want to make the I screen inactive, I do not want any event occuring in the first screen when second screen is active. Is this possible?

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Sure it is. Is the second screen a dialog? Then simply give the dialog a owner
      @
      YourDialog *newDialog = YourDialog(this);
      @
      The dialog is automatic set to stop the other screen from operation. This is called modal or modalles.
      For an application is is:
      @setWindowModality(Qt::WindowModality);@
      If this doesn't help you maybe let us know what types of windows you use?
      greetz

      Greetz, Jeroen

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Julie1986
        wrote on last edited by
        #3

        I need it in qml. not with Qt.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          [quote author="Julie1986" date="1348143386"]I need it in qml. not with Qt.[/quote]

          Then you should have 1) explicitly have said that, and 2) posted in the right forum (I moved it now for you). Note that QML is also Qt.

          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