Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML (Qt 4.8.5): javascript function executed outside it's object
Forum Updated to NodeBB v4.3 + New Features

QML (Qt 4.8.5): javascript function executed outside it's object

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 549 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thesourcehim
    wrote on last edited by
    #1

    Hello, I have a problem executing javascript function defined inside QML. This function addresses some properties of that QML and sometimes when this function is called from another QML file, it can't find those properties (complains about undefined variables). It happens sometimes, not always. It's like javascript code is being executed outside of the context it's defined in. Since the behavior is random, I suppose it's a bug. Any advice how to avoid this? Tried addressing properties via id.property, but problem stays.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved