Hi,

> Is this intended behaviour or an oversight? If intended, why should setting a layout/widget be different to setting text or setting a widget to be enabled?

Only properties which are visible in Qt Designer (and are declared as such  by using the Q_PROPERTY macro in the C++ class, see  https://doc.qt.io/qt-6/qmainwindow.html ) are exposed as Python properties.  There are other setters/getters following this naming convention like setCentralWidget(), but they are not really properties in the sense of designable, orthogonal widget properties.

This is ATM not really visible in the QfP documentation, which can be improved.

Regards, Friedemann

--

Friedemann Kleint
The Qt Company GmbH

_______________________________________________
PySide mailing list
PySide@qt-project.org
https://lists.qt-project.org/listinfo/pyside

Reply via email to