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.
It looks like using signals is one way to do it, otherwise, just passing the values through functions.