Access Screen object from external javascript

77 views Asked by At

I have an external Javascript script in a QtQuick project and I want to access the Screen object from there. In particular, I want to access the width and height of the screen from the external JS function.

Do you know how I can do that? Is passing it into a function the only way available? Thanks in advance.

1

There are 1 answers

0
phyatt On

It looks like using signals is one way to do it, otherwise, just passing the values through functions.