We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ec8501 commit 6986dbaCopy full SHA for 6986dba
src/PythonQtConversion.cpp
@@ -565,7 +565,7 @@ void* PythonQtConv::ConvertPythonToQt(const PythonQtMethodInfo::ParameterInfo& i
565
{
566
QByteArray bytes = PyObjGetBytes(obj, strict, ok);
567
#ifdef PY3K
568
- if (!ok) {
+ if (!ok && !strict) {
569
// since Qt uses QByteArray in many places for identifier strings,
570
// we need to allow implicit conversion from unicode as well:
571
bytes = PyObjGetString(obj, strict, ok).toUtf8();
0 commit comments