Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.14.0, 5.14.1, 5.14.2
-
Windows 10.0.18362 AMD64
Python: 3.8.2 AMD64
PySide2: 5.14.2.1
-
-
UI Bug Fixing Q1/2021
Description
I was refactoring my user interface to make use of lazy loading a bit more.
As it was being build I wanted to make sure the interface does not yet receive user inputs.
Thus I was calling:
self.setEnabled(False)
then built all the actions, lists, fill it with list items, widgets, tabs and so on until I finally:
self.setEnabled(True)
the whole thing again. Worked nice in 5.13.x I think. But from 5.14.0 on there were these errors coming:
qt.accessibility.core: Cannot create accessible child interface for object: QTabBar(0x24f514fea20, name = "qt_tabwidget_tabbar") index: 2
Mostly in chunks of 3 lines.
Seems when I just create the container widgets outside of the disabled state everything is fine again.
Parent widgets that I experienced this with:
- QMenuBar - first is OK, from when hovering the second menu: 3 lines of errors, 3 more on click
- QListWidget - first 3 list items are OK, from clicking the fourth 3 lines of errors then 3 more when changing away from the list item
- QTabBar - first 2 tab widgets are OK, from clicking the third 2 lines or errors ...
might be there is more. I put a code example for the QmenuBar into the Attachments
Steps to reproduce:
- (Windows) Ensure an accessibility tool or other UI Automation client, like Microsoft Narrator or Inspect is running
- Run example