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

ActiveQt property slotname is wrongly cut

    XMLWordPrintable

Details

    • ca7647e94748b499641e0800ee4aed158e89238b (qtactiveqt/5.5, 4.1.2016, 5.5.2)

    Description

      Code below should cut first three letters "set" from the beginning of the slotname. But it cuts slotname length - 3. That cause wrong result.

      src/activeqt/container/qaxbase.cpp
      3641     if (dispid == DISPID_UNKNOWN && slotname.toLower().startsWith("set")) {
      3642         // see if we are calling a property set function as a slot
      3643         slotname.remove(0, slotname.length() - 3);
      3644         dispid = d->metaobj->dispIDofName(slotname, disp);
      3645         isProperty = true;
      3646     }
      

      Should be:

      3643        slotname.remove(0, 3);
      

      Attachments

        Activity

          People

            kleint Friedemann Kleint
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: