Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Key_events get added up on showing Application Modal QDialog
Forum Updated to NodeBB v4.3 + New Features

Key_events get added up on showing Application Modal QDialog

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 3.0k 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
    pazhs
    wrote on last edited by
    #1

    Hi Folks,

    I am using a Animated Gif file using QMovie, QLabel and QDialog, to show transition from one screen to another ( in case if the transition takes more time to switch over from one screen to another ).

    I am using setModal( true ) and open() methods of QDialog to show this Animation gif, so that user cant interact during this process of transition from one screen to another....

    In case if i use these methods to enable "ApplicationModal", in some other screen, where we are handling "key_Right" and "key_Left", these keyevents get multiplied/added up depends upon the number of times this Animated Gif is shown through this QMovie, QLabel, QDialog .... Key_Right fires twice ( on single key_right press ) in case if i show the Animated Gif once... and it fires thrice, in case if we show the Animated Gif again... and so on ....

    we are actually using done( int r ) method and Qt::WA_DeleteOnClose to delete this Animated Gif using QDialog....

    is it a bug or do we need to set some WindowsFlags for the QDialog?

    1 Reply Last reply
    0
    • I Offline
      I Offline
      Immii
      wrote on last edited by
      #2

      difficult to say with this description is this possible for you to share some code spinet?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vcsala
        wrote on last edited by
        #3

        When you construct the QDialog, what is the parent you give to it? If you want to be it application modal it is recommended to set it 0.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pazhs
          wrote on last edited by
          #4

          [quote author="VCsala" date="1293125846"]When you construct the QDialog, what is the parent you give to it? If you want to be it application modal it is recommended to set it 0.[/quote]

          For being ApplicationModal, I am not passing any parent pointer to that Dialog...

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vcsala
            wrote on last edited by
            #5

            Please, show some code snippets to allow us understand better your problem.

            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