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. QApplication Algorithms (exec, notify , ….) ?
Forum Updated to NodeBB v4.3 + New Features

QApplication Algorithms (exec, notify , ….) ?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.7k 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.
  • U Offline
    U Offline
    u2gilles
    wrote on last edited by
    #1

    I am looking for a document describing in detail the algorithms of QApplication::exec() , QApplication::notify, and when exactly QApplication Event Filter is called . I know I could have a look at the source code, but if you have such a document, I would appreciate.

    The reason why I want to investigate this point is that I just realized that my understanding of these algorithms was wrong. Indeed, I activated some traces and I saw that when an event when propagated to parents, nofity() was called only one time and the EventFilter of QApplication was called as many times as the event is propagated. I thought I was the reverse.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      I doubt that such a document exists. The source code it probably your best bet.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • U Offline
        U Offline
        u2gilles
        wrote on last edited by
        #3

        Thanks, I don't think i will do this in the near future :)
        Putting the same event filter (that only displays the event and the object) in all objects of my GUI gave me a good picture of what's going on.
        But I really don't understand what notify() does as , unless my trace code is bugged, notify() is called only one time when the event is propagated many times, which contradicts my understanding of notify() from documentation. Never mind, i can live with this.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          I don't know if you would find it helpful or not, but there is an old Qt Quarterly article on events that has a pretty good in-depth discussion in general terms "here.":http://doc.qt.digia.com/qq/qq11-events.html

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          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