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 replace the event handler used in c# in qt?

How to replace the event handler used in c# in qt?

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

    Hello~~

    How to replace the event handler used in c# in qt?

    A. class
    event EventHandler event_Connection

    B.class
    A_Class.event_Connection += event_comn

    JonBJ 1 Reply Last reply
    0
    • L LISP

      Hello~~

      How to replace the event handler used in c# in qt?

      A. class
      event EventHandler event_Connection

      B.class
      A_Class.event_Connection += event_comn

      JonBJ Online
      JonBJ Online
      JonB
      wrote on last edited by
      #2

      @LISP
      Basically declare a Qt signals: ... for a C# event, declare a Qt slots: ... for a slot, and use Qt connect() to connect instances of the signal & slot objects. This appends the connection to any existing connections on the signalling object, just like C#'s +=.

      1 Reply Last reply
      1

      • Login

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