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

slot with complex template default value is not compile able

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.3, 4.7.0
    • Core: Object Model
    • None
    • 4da1a3b63445c04d4ca4acae448e9b6b046938c3

    Description

      Moc parsing looks broken for this:

      public slots:
      void doSomething(QHash<QString, QVariant> values = QHash<QString, QVariant>());

      >>

      case 0: doSomething((*reinterpret_cast< QHash<QString,QVariant>>(_a[1])),(*reinterpret_cast< QVariant>(_a[2]))); break;

      compile error for the attached project:
      debug\moc_testobject.cpp(73) : error C2660: 'TestObject::doSomething' : function does not take 2 arguments

      Attachments

        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)
            tjenssen Tim Jenssen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes