We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27f7689 commit 47c73c7Copy full SHA for 47c73c7
src/PythonQt.cpp
@@ -2643,6 +2643,24 @@ PythonQtClassInfo* PythonQtPrivate::getClassInfo( const QByteArray& className )
2643
}
2644
2645
2646
+
2647
+ if (!result) {
2648
+ bool ambiguity = false;
2649
+ for(auto &&key: _knownClassInfos.keys()) {
2650
+ if (key.indexOf(QByteArray("::") + className) >= 0) {
2651
2652
+ result = _knownClassInfos.value(key);
2653
+ } else {
2654
+ ambiguity = true;
2655
+ std::cerr << "Multiple candidates found" << std::endl;
2656
+ }
2657
2658
2659
+ if (ambiguity) {
2660
+ return nullptr;
2661
2662
2663
2664
return result;
2665
2666
0 commit comments