Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19697

Compile error when using virtual QObject inheritance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.0
    • Build tools: moc
    • None
    • gcc (SUSE Linux) 4.6.0 20110523 [gcc-4_6-branch revision 174058]
      openSUSE 11.4, 32 bit

    Description

      With Qt from 4.8 branch at 408a522f several KDE modules (kdeaccessibility, kdenetwork, kdesdk) fail to compile because of a change in moc. The error message is:

      moc_test.cpp:47:50: error: cannot convert from base 'QObject' to derived type 'MyObject' via virtual base 'QObject'

      Attached is a minimal testcase that reproduces the compilation error.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              goffart Olivier Goffart (closed Nokia identity) (Inactive)
              cfeck Christoph Feck
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes