2

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 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.