Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.8.2
-
None
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:
- Build and register simpleax.exe, then run dumpcpp on it to obtain a header and a source
- Copy the header and source to reproducer directory
- 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
- 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.
- 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.