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. QEvent does not override
Forum Updated to NodeBB v4.3 + New Features

QEvent does not override

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 391 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.
  • M Offline
    M Offline
    misscoffee
    wrote on last edited by
    #1

    QObject class does not want to override QKeyPressed events and QClose event also but works with timerEvent. The error message that my functions are not overriding any functions.

    3d69baa4-f284-4f28-91b6-91a595a925fc-image.png

    M 1 Reply Last reply
    0
    • M misscoffee

      QObject class does not want to override QKeyPressed events and QClose event also but works with timerEvent. The error message that my functions are not overriding any functions.

      3d69baa4-f284-4f28-91b6-91a595a925fc-image.png

      M Offline
      M Offline
      mpergand
      wrote on last edited by mpergand
      #2

      @misscoffee
      keyPressEvent doesn't exist for QObject,
      Change QObject to QWidget.

      1 Reply Last reply
      4
      • C Offline
        C Offline
        CPPUIX
        wrote on last edited by CPPUIX
        #3

        Hi,

        QObject has no keyPressEvent()/keyReleaseEvent().

        QObject protected functions:

        QObject protected functions.png

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

          thank you all so much i'm sorry for stupid!

          C 1 Reply Last reply
          0
          • M misscoffee has marked this topic as solved on
          • M misscoffee has marked this topic as unsolved on
          • M misscoffee

            thank you all so much i'm sorry for stupid!

            C Offline
            C Offline
            CPPUIX
            wrote on last edited by
            #5

            @misscoffee Missing obvious things happens to most of us, don't worry about it (unless it occurs frequently...).

            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