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

Calling functions through dynamicCall() don't return values by QVariant.

    XMLWordPrintable

    Details

    • Commits:
      fc50d7ecaacfbfef1dbefd6ffdc083cb66c5633c (Qt/4, 30.9.2010, 4.7.2) e060138205c0a680ddc99237ad0c1b44ba3fe514 (qt/qtactiveqt/5.13)

      Description

      Simple example code that was working in 4.6.3: (Excel first cell reading)


      excel = new QAxObject( "Excel.Application", 0 );
      workbooks = excel->querySubObject( "Workbooks" );
      workbook = workbooks->querySubObject( "Open(const QString&)", myFile );
      sheets = workbook->querySubObject( "Worksheets" );

      QAxObject* sheet = sheets->querySubObject( "Item( 1 )" );
      QAxObject* cell = sheet->querySubObject( "Cells( 1, 1 )" );
      qDebug() << "QVARIANT RESULT:" << cell->dynamicCall( "Value()" );

      This return in qt 4.6.3:
      QVARIANT RESULT: QVariant(QString, "test")

      in qt 4.7.0:
      QVARIANT RESULT: QVariant(, )

        Attachments

        1. oleview-idl.png
          oleview-idl.png
          254 kB
        2. QAxTestProj.zip
          19 kB
        3. qtbug13845.zip
          30 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vhilshei Volker Hilsheimer
            Reporter:
            p4eter Piotr Michalski
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes