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. [solved]QEvent , is it Possible to handle it in console application with no QObject?

[solved]QEvent , is it Possible to handle it in console application with no QObject?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 3.0k 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.
  • P Offline
    P Offline
    Polto
    wrote on 10 Nov 2010, 11:13 last edited by
    #1

    is it Possible to handle QEvent in console application with no QObject?
    ex:
    a console application get the key press or mouse keys event
    or the event must handle in QObject class

    Polto

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Franzk
      wrote on 10 Nov 2010, 11:17 last edited by
      #2

      No. QEvents are delivered by QApplication to QObjects. See "Events and Filters":http://doc.trolltech.com/latest/eventsandfilters.html.

      "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Polto
        wrote on 10 Nov 2010, 11:24 last edited by
        #3

        thanks ,
        these all functions the QObject is main parameter in it
        but I ask to be sure
        bool QCoreApplication::notify ( QObject * receiver, QEvent * event )
        void QCoreApplication::postEvent ( QObject * receiver, QEvent * event )
        void QCoreApplication::postEvent ( QObject * receiver, QEvent * event, int priority )
        thanks again

        Polto

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Franzk
          wrote on 10 Nov 2010, 13:59 last edited by
          #4

          No problem.

          "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0

          1/4

          10 Nov 2010, 11:13

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved