We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69f59ad commit 87df4f2Copy full SHA for 87df4f2
src/PythonQtInstanceWrapper.cpp
@@ -770,11 +770,7 @@ static PyObject * PythonQtInstanceWrapper_str(PyObject * obj)
770
PythonQtInstanceWrapper* wrapper = (PythonQtInstanceWrapper*)obj;
771
772
// QByteArray should be directly returned as a str
773
-#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
774
if (wrapper->classInfo()->metaTypeId() == QMetaType::QByteArray) {
775
-#else
776
- if (wrapper->classInfo()->metaTypeId()==QVariant::ByteArray) {
777
-#endif
778
QByteArray* b = (QByteArray*) wrapper->_wrappedPtr;
779
#ifdef PY3K
780
// Note: In Python 2, this was used to access the data() of a byte array.
0 commit comments