Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Something like MathJSON in QML. Is there any for iOS/Android?
Forum Updated to NodeBB v4.3 + New Features

Something like MathJSON in QML. Is there any for iOS/Android?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 208 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    Hello!
    I am tying to find something like https://gist.github.com/laughinghan/4350e4438e6cfc951826 but for using it in QML for iOS/Android.
    For example - I have array of arrays:

    [
    	[["Field_01",465],["Field_02",465],["Field_03",465],["Field_04",465],["Field_05",465]],
    	[["Field_01",465],["Field_02",465],["Field_03",465],["Field_04",465],["Field_05",465]],
    	[["Field_01",465],["Field_02",465],["Field_03",465],["Field_04",465],["Field_05",465]],
    	[["Field_01",465],["Field_02",465],["Field_03",465],["Field_04",465],["Field_05",465]]
    ]
    

    And I am getting from server formula, something like this:

    Field_01 * 15 / 25 + Field_03 * 2
    

    or

    (Field_01 + Field_02) / 5 + Field_04
    

    or any other formula.

    Is there any solution for this kind of issues in Qt/QML?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote on last edited by
      #2

      Solution found issue closed.

      The formula should be in JavaScript compatible format and using https://doc.qt.io/qt-5/qjsengine.html

      QJSEngine myEngine;
      QJSValue three = myEngine.evaluate("1 + 2");
      
      1 Reply Last reply
      1

      • Login

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