alessandro ferrucci
alessandro ferrucci

Reputation: 1289

Access Screen object from external javascript

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.

Upvotes: 2

Views: 69

Answers (1)

phyatt
phyatt

Reputation: 19122

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

Upvotes: 1

Related Questions