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

Link via target does not compile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.6.0 RC
    • Some future release
    • Build tools: qdoc
    • None
    • 7b77ef6 (qtbase) 50f4676f6189500ce6c488a9596eb09a05c7fd53

      A link created using \target does not compile in qtdeclarative:

      Definition target:

      \target qqmlpropertymap_derived_parentobj
      \fn QQmlPropertyMap::QQmlPropertyMap(DerivedType *derived, QObject *parentObj)
      
      Constructs a bindable map with parent object \a parent.  Use this constructor
      In classes derived from QQmlPropertyMap.
      

      Linking to the target (in the same file, qqmlpropertymap.cpp):

      \note When deriving a class from QQmlPropertyMap, use the
                \l {qqmlpropertymap_derived_parentobj}{protected two-argument    constructor}
                which ensures that the class is correctly registered with the 
                Qt \l {Meta-Object System}.
      

      Error message:

      /home/nico/dev/gerrit/stable/qtdeclarative/src/qml/util/qqmlpropertymap.cpp:134: warning: Can't link to 'qqmlpropertymap_derived_parentobj'
      

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

            gbk Martin Smith (Qt)
            vertries Nico Vertriest (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes