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. `override` specifier in Qt

`override` specifier in Qt

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

    Hello,

    I added an override specifier to an overridden method, but I have

    method with override specifier 'override' did not override any base class methods

    My a class extending a QWidget and I'm trying to override ​closeEvent which is virtual. I'm using Qt 5.4.0, Win7.

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      It would be helpful to include your code.

      Right now I can only say you made a mistake somewhere :)

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nikitablack
        wrote on last edited by
        #3

        Hi Chris, you right, as always :). But it's not an usual typo. I copied function name from documentation and it seems some hidden symbols copied too. I typed same function manually and everything start to work (and function name become typed in italic).

        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