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 capture events in forms

How to capture events in forms

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 356 Views 2 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.
  • A Offline
    A Offline
    ArunBm
    wrote on last edited by
    #1

    Hi
    I have a subclass of widget W with different child widgets A,B,C. on it..this W widget is placed on QMainwindow....
    How do I capture child widget A events in subclass W?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Depending on what you really want to do, you could use QObject::eventFilter()

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        Depending on what you really want to do, you could use QObject::eventFilter()

        A Offline
        A Offline
        ArunBm
        wrote on last edited by
        #3

        @Christian-Ehrlicher I want focusInEvent for all child lineedit.
        Any python code will be appreciated

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

          Hi
          Maybe this can be used
          https://gist.github.com/stevenliebregt/8e4211937b671ac637b610650a11914f
          note sample uses QEvent.TouchBegin but you want other event.

          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