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. Throwing a script exception from C++ (QtQuick 2.0)
Forum Updated to NodeBB v4.3 + New Features

Throwing a script exception from C++ (QtQuick 2.0)

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 947 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.
  • E Offline
    E Offline
    extronus
    wrote on 20 Feb 2013, 09:38 last edited by
    #1

    With Qt4/QtQuick1.x, after obtaining a pointer to QScriptEngine, i was throwing exceptions with

    @scriptEngine->currentContext()->throwError("Error string");@

    However new QJSEngine class provides no such facilities. I've tried "QJSEngine::evaulate()" function but it has no effect. Any ideas?

    Turgut Hakkı Özdemir

    1 Reply Last reply
    0

    1/1

    20 Feb 2013, 09:38

    • Login

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