Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Why so many events with an open dialog.

    General and Desktop
    2
    2
    592
    Loading More Posts
    • 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
      SpanishJohn last edited by

      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 Reply Quote 0
      • raven-worx
        raven-worx Moderators last edited by

        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 Reply Quote 0
        • First post
          Last post