QSS - determine element position
Hello,
Brand new to QT but looking to see if there's is a specific function available (or perhaps a different solution to a problem). The problem is, once a page is rendered, relative to the top/left corner of the page (x/y to the page), can I take a QSS element and determine it's absolute position?
For CSS/Javascript, there's a function called; element.getBoundingClientRect(). Is there something similar for QSS/Qt?
After that I need to determine what the element width and height is. With this all combined, I can inspect/test elements after they have been rendered to the page to make sure they are done so correctly and in the correct position.
Thank you in advance
Re: QSS - determine element position
QSS, similar to CSS, is just styling rules. There is no scripting involved.
Also not sure what you mean with "page" in this context. As in "widget in a tab widget" or something like that?
Cheers,
_