Some updates for Qt6.

This commit is contained in:
Mikaël Capelle
2022-04-21 23:58:05 +02:00
parent 67ea7deb00
commit 4937fe9cc9
6 changed files with 64 additions and 108 deletions
+3 -3
View File
@@ -70,8 +70,8 @@ namespace py = pybind11;
PYBIND11_MODULE(mobase, m)
{
py::module_::import("PyQt5.QtCore");
py::module_::import("PyQt5.QtWidgets");
py::module_::import("PyQt6.QtCore");
py::module_::import("PyQt6.QtWidgets");
py::detail::type_caster<QString> t1;
py::detail::type_caster<QVariant> t2;
@@ -1223,7 +1223,7 @@ bool PythonRunner::initPython()
mainNamespace);
mainNamespace["mobase"] = py::module_::import("mobase");
mo2::details::configure_python_logging(mainNamespace["mobase"]);
mo2::python::configure_python_logging(mainNamespace["mobase"]);
return true;
} catch (const py::error_already_set&) {