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. Why so many events with an open dialog.
QtWS25 Last Chance

Why so many events with an open dialog.

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

    Hi,

    So I installed an event filter into QApplication so I could capture all my application events for debug etc (debug text is sent to separate console window). With the application open (a GUI) I get the following:

    1 (TimerEvent) - I installed a timer
    5 (MouseMove Event) - when I move the mouse
    129 (MouseHoverEvent) - when I move the mouse.

    Now the interesting bit, when I open a simple modal dialog, and with the dialog static in the middle of the screen and the mouse static I get a continuous stream of the following:

    170 (DynamicPropertyChangeEvent) - continuous
    77 (UpdateRequestEvent) - continuous
    12 (PaintEvent) - continuous

    Why is Qt continuously re-drawing the dialog widgets?

    Thanks in advance SJ

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      paint event can be caused by many actions (mouse moves, explicit calls, resize, etc.)
      Mostly they are optimized by only requesting a redraw of a (sub-)area.

      Where exactly is the problem with the paint events?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      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