diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-05-17 14:43:13 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-05-21 09:57:01 +0200 |
commit | 985d9e01a2d52cecfb5083941e819969033d1061 (patch) | |
tree | b8665c87fcc188eeaa4bb06a5ffc4db4c27f15a3 /sources/pyside2/doc/codesnippets/doc/src/snippets/doc_src_qtgui.py | |
parent | 84939474074974b080474a224e5e2900cad25d8a (diff) |
Lazy loading introduced a performance regression for applications
using for example an event filter on QApplication, where all internal
QObject-derived types from QML occur. This triggered the lazy loading
mechanism for each of those classes that have no binding.
To fix this, introduce checks to typeName(const QObject *)
that skip the internal classes by checking for presence of a
dynamic meta object and internal type names.
This should also help skipping over QObject-derived classes written
in Python which also have a dynamic meta object.
Fixes: PYSIDE-2749
Task-number: PYSIDE-2404
Pick-to: 6.7
Change-Id: I029d104e59820fbf3dab52a3ac65b45d97b3c2e7
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/pyside2/doc/codesnippets/doc/src/snippets/doc_src_qtgui.py')
0 files changed, 0 insertions, 0 deletions