From 5276f9bf787eadd5a336f5f6eb6bcf19865de198 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Fri, 12 Feb 2021 19:13:43 +0100 Subject: build support for pathlib.Path, baseline [ChangeLog][PySide6] pathlib.Path gets additionally accepted for all function arguments which have a std::filesystem::path type. This is a first part that implements those modifications which have a std::filesystem::path entry. In a later patch, all the possible other Path insertions will be made. Task-number: PYSIDE-1499 Change-Id: I2dec04dbdb2aaff6ca56c39b28f60281262fe078 Reviewed-by: Christian Tismer --- sources/pyside6/libpyside/pyside.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sources/pyside6/libpyside/pyside.h') diff --git a/sources/pyside6/libpyside/pyside.h b/sources/pyside6/libpyside/pyside.h index 3c4ae92b2..9bb0ab12e 100644 --- a/sources/pyside6/libpyside/pyside.h +++ b/sources/pyside6/libpyside/pyside.h @@ -156,6 +156,11 @@ PYSIDE_API void setQuickRegisterItemFunction(QuickRegisterItemFunction function) */ PYSIDE_API QString pyStringToQString(PyObject *str); +/** + * Provide an efficient, correct PathLike interface. + */ +PYSIDE_API QString pyPathToQString(PyObject *path); + /** * Registers a dynamic "qt.conf" file with the Qt resource system. * -- cgit v1.2.3