Results 1 to 2 of 2

Thread: Getting a Q_INVOKABLE C++ memeber function reevaluated bythe QML engine

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Default Re: Getting a Q_INVOKABLE C++ memeber function reevaluated bythe QML engine

    Hello

    I'm exposing some C++ member functions to my QML files by making them Q_INVOKABLE.

    How to get a Q_INVOKABLE C++ function reevaluated by the QML engine?

    JS functions inside QML are reevalueded but not C++ ones.

    In QML: MyJSFuncion(MyParameter)

    Will be reevaluetd if MyParameter changes

    Thanks

    Mut


    Added after 1 3 minutes:


    Adding some precision about reevalaution:

    In QML: My_Exposed_CCObject.My_CCP_Funcion(MyParameter)
    In JS: My_Exposed_CCObject.My_CCP_Funcion(MyParameter)

    Thanks

    Mut.
    Last edited by mut; 10th August 2017 at 05:53.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Getting a Q_INVOKABLE C++ memeber function reevaluated bythe QML engine

    Will be reevaluetd if MyParameter changes
    What do you mean exactly? Property binding?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 2
    Last Post: 11th March 2016, 15:53
  2. Stuck with QNetworkManager and Q_INVOKABLE
    By KeineAhnung in forum Newbie
    Replies: 9
    Last Post: 7th December 2015, 15:46
  3. Unable to create a debugger engine of type "No engine"
    By beyersdorfertj in forum Installation and Deployment
    Replies: 1
    Last Post: 18th December 2014, 17:13
  4. Q_INVOKABLE in derived classes
    By golubevsv in forum Qt Programming
    Replies: 1
    Last Post: 18th September 2014, 14:36
  5. Replies: 0
    Last Post: 22nd June 2010, 21:27

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.