PyQt5: Property alias on root object gets sip.voidptr

Patrick Stinson patrickkidd at gmail.com
Sun Dec 15 18:36:29 GMT 2024


Sometimes alias properties on the root object in a .qml file get sip.voidptr, and sometimes they don’t. For example:

Rectangle {
	id: root

	property alias someList: someList

	ListView {
		id: someList
	}
}

There are two workarounds: change `alias` to `var`, and don’t use the same name for the alias as for the target item id. But I’m just curious what is happening under the hood here.

Thanks!


More information about the PyQt mailing list