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. How to send event to system?
Forum Updated to NodeBB v4.3 + New Features

How to send event to system?

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

    I know that I can send a event to a receiver via QApplication::sendEvent(QObject *receiver, QEvent *event).But how to let the receiver to be system/OS?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you explain what exactly you want to send to your OS ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dscyw
        wrote on last edited by
        #3

        [quote author="SGaist" date="1395656317"]Hi,

        Can you explain what exactly you want to send to your OS ?[/quote]

        MouseEvent or keyEvent.I am implemting a remote control system,as a part I need to simulate mouseEvent and keyEvent which are from remote pc on the native system.Thanks for your reply.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          AFAIK, it's not something Qt can do out of the box

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dscyw
            wrote on last edited by
            #5

            [quote author="SGaist" date="1395743984"]AFAIK, it's not something Qt can do out of the box[/quote]
            Thanks.Do you have any ideas to achieve my goal?I know I can implemt it easily with Windows API,but I want to know how to do the same thing with Qt.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Like I said. I am not aware of anything available in Qt for that. But you can use the Windows API alongside Qt without any problem

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • D Offline
                D Offline
                dscyw
                wrote on last edited by
                #7

                [quote author="SGaist" date="1395781773"]Like I said. I am not aware of anything available in Qt for that. But you can use the Windows API alongside Qt without any problem[/quote]
                It seems I have no alternative.Thank you.

                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