Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QJSEngine throw engine exception in c++ native method
Forum Updated to NodeBB v4.3 + New Features

QJSEngine throw engine exception in c++ native method

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.3k Views 2 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.
  • W Offline
    W Offline
    walteste
    wrote on 24 Feb 2016, 13:12 last edited by walteste
    #1

    I am looking for a way to throw a QJSEngine exception within my native c++ function while we evaluate a script.

    In QScriptEngine I used:

    return context->throwError( QScriptContext::SyntaxError, "Argument not valid.");
    

    How can I achieve this in the QJSEngine?

    1 Reply Last reply
    1
    • V Offline
      V Offline
      VeNToR
      wrote on 31 Dec 2017, 13:25 last edited by
      #2

      Hi;

      Did you solve ?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        walteste
        wrote on 3 Jan 2018, 06:50 last edited by
        #3

        Unfortunately, No.

        A 1 Reply Last reply 3 Jan 2018, 07:12
        0
        • W walteste
          3 Jan 2018, 06:50

          Unfortunately, No.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 3 Jan 2018, 07:12 last edited by
          #4

          HI @walteste and @VeNToR:

          You should try the Interest mailing list: http://lists.qt-project.org/mailman/listinfo/interest

          There is a better chance to catch experienced users or developers that might help you.

          And there's always the possibility to create a bugreport (maybe search for existing reports first): bugreports.qt.io

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VeNToR
            wrote on 3 Jan 2018, 10:10 last edited by
            #5

            If I will, inform you :)

            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