Results 1 to 3 of 3

Thread: C++ pointer to Qml - is this possible?!?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2015
    Location
    Poland
    Posts
    34
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Exclamation C++ pointer to Qml - is this possible?!?

    Hi

    [[[ I waste half day for googling and trying different code. So I am not lazy when I am asking. ]]]

    I have simple question whether is this possible:
    Create and feed QSqlQueryModel in C++ and send it (whatever way) to Qml?
    If you claim yes, then please attach prof code...

    And I am not interested with expose some alone object to Qt (I have no problem with this - I can use lEngine.rootContext()->setContextProperty from main()) But I want send any number of C++ models to Qml (different models to different Qml objects).
    I have problem with passing parameters to functions and to property (pointers as parameters).

    Thank you and best regards
    Szyk Cech
    Last edited by Szyk; 16th May 2017 at 19:10.

Similar Threads

  1. Replies: 3
    Last Post: 23rd May 2015, 13:57
  2. Replies: 1
    Last Post: 4th December 2010, 17:20
  3. this pointer
    By salmanmanekia in forum General Programming
    Replies: 3
    Last Post: 11th June 2010, 08:43
  4. Pointer to Pointer
    By ^NyAw^ in forum General Programming
    Replies: 5
    Last Post: 25th April 2009, 08:00
  5. pointer
    By mickey in forum General Programming
    Replies: 4
    Last Post: 1st September 2006, 00:42

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.