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
QtWS25 Last Chance

QJSEngine throw engine exception in c++ native method

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.2k Views
  • 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 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 last edited by
      #2

      Hi;

      Did you solve ?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        walteste
        wrote on last edited by
        #3

        Unfortunately, No.

        aha_1980A 1 Reply Last reply
        0
        • W walteste

          Unfortunately, No.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 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 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