`override` specifier in Qt
General and Desktop
3
Posts
2
Posters
2.0k
Views
2
Watching
-
Hello,
I added an
overridespecifier to an overridden method, but I havemethod with override specifier 'override' did not override any base class methods
My a class extending a
QWidgetand I'm trying to override​closeEventwhich is virtual. I'm using Qt 5.4.0, Win7. -
It would be helpful to include your code.
Right now I can only say you made a mistake somewhere :)
-
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).