PDA

View Full Version : Qt3D: WorldMatrix ?



panicq
29th January 2021, 13:28
Hi,

I'm totally new to Qt3D and I'm wondering how can I get the worldMatrix of a transform (the camera worldMatrix of a Qt3DWindow to be precise).

When reading the doc of QTransform it seems that it exists...

https://doc.qt.io/qt-5/qt3dcore-qtransform.html#worldMatrix-prop

... However in Qt 5.9.9 (the version I'm using) I'm not seeing the method:

"no meber named "worldMatrix" in Qt3DCore::QTransform" -> indeed it's not declared in the source file.

Any clue ?

Thanks !

d_stranz
29th January 2021, 16:37
Maybe you should read the documentation more closely:


This property was introduced in Qt 5.14.

panicq
29th January 2021, 16:39
Yes and as I said I'm using 5.9.9 so it should be ok... or it was deprecated ?

d_stranz
29th January 2021, 16:45
so it should be ok...

What should be OK? That you should be able to use something from the future in a version of Qt that is 5 versions in the past? Maybe you don't understand how Qt versions work - 5.9 is older than 5.14 by 5 releases. It isn't a number, it's a release code: version 5, release 9 vs. version 5 release 14.

panicq
29th January 2021, 16:48
Oh sorry, my mistake, indeed. I'm used to other version notations. Thank you !

d_stranz
29th January 2021, 17:25
Maybe it's time to upgrade...

panicq
29th January 2021, 19:36
True, but I used a very specific version of OpenCV that worked with 5.9.9, anyway I'll try to upgrade without breaking everything :D