Results 1 to 5 of 5

Thread: bool QTabWidget::hasHeightForWidth() const’ marked override, but does not override

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    507
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default bool QTabWidget::hasHeightForWidth() const’ marked override, but does not override

    Hi, I get this error during compilation:
    Qt Code:
    1. In file included from /usr/include/qt5/QtWidgets/qstyleoption.h:44:0,
    2. from /usr/include/qt5/QtWidgets/qabstractitemdelegate.h:38,
    3. from /usr/include/qt5/QtWidgets/qabstractitemview.h:40,
    4. from /usr/include/qt5/QtWidgets/qheaderview.h:37,
    5. from /usr/include/qt5/QtWidgets/QHeaderView:1,
    6. from obj/ui/ui_mydialog.h:19
    7. (...)
    8. /usr/include/qt5/QtWidgets/qtabwidget.h:120:10: error: ‘bool QTabWidget::hasHeightForWidth() const’ marked override, but does not override
    9. bool hasHeightForWidth() const Q_DECL_OVERRIDE;
    To copy to clipboard, switch view to plain text mode 
    qtabwidget.h is included by a file generated from an .ui file
    I'm using Qt 5.6.1 with g++ 4.8.5 on Linux (openSUSE 42.1)

    How can I get rid of this?

    Ginsengelf
    Last edited by Ginsengelf; 24th January 2017 at 15:47. Reason: Fixed tags

Similar Threads

  1. Override locale with QSystemLocale
    By sedi in forum Qt Programming
    Replies: 2
    Last Post: 23rd April 2013, 10:04
  2. Can't override the closeEvent()
    By scot_hansen in forum Newbie
    Replies: 7
    Last Post: 5th October 2010, 22:47
  3. How to override ShowEvent() etc
    By marcvanriet in forum Newbie
    Replies: 1
    Last Post: 22nd September 2010, 10:13
  4. Shortcut override ?
    By fenerista in forum Qt Programming
    Replies: 6
    Last Post: 23rd May 2010, 12:02
  5. Override a signal
    By daviddoria in forum Newbie
    Replies: 4
    Last Post: 9th February 2010, 18:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.