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

Wrong property type obtained from an ActiveX server

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.8.2
    • Active Qt
    • None
    • Windows

    Description

      The server being used is our Simple Example (ActiveQt) which exposes 2 properties: value and text. And the reproducer is a simple container that tries to use the server.

      Steps to reproduce:

      1. Build and register simpleax.exe, then run dumpcpp on it to obtain a header and a source
      2. Copy the header and source to reproducer directory
      3. In the header, remove all Qt types (QRect, QPoint, QSize, etc..) from namespace and replace all "simpleaxLib::QtType" with just ""QtType". That is by another bug: https://bugreports.qt.io/browse/QTBUG-134098
      4. Comment out everything related to method"setVisible". That is an ugly but quick fix for the problem that both ActiveQt and QWidget provide "setVisible" method - different but with the same name.
      5. Only then one can build and run the reproducer and one is going to see that the value is 1 although it is set to 10.

      The problem is that the property is actually considered as a bool. Debugging into meta object, one can actually see that QSimpleAx somehow thinks the type of that property is bool:

      The same goes to "text" too. Although for "text", one can only see the problem by debugging because "simpleAx->text();" crashes at some atomic operation at a later time:

      So one can only confirm that "text" is also considered as a bool by debugging into it.

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes