Results 1 to 2 of 2

Thread: send qml calling reference to c++

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Thanks
    75
    Thanked 24 Times in 21 Posts
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default send qml calling reference to c++

    Here is the thing i wanna do..
    I want to send to c++ class a qml signal but in its argument i want to send the qml calling object(calling object reference) to set/get its properties. How can i do that? (Qt5)

    for example :
    let have a signal which called: signal sentToCPP(variant arg);
    i want to sent calling qml file as "arg" and get its property and edit it in cpp via arg. but i don't know how get arg's properties and edit it. any suggestion?
    Last edited by alizadeh91; 23rd August 2012 at 16:26.

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

    Default Re: send qml calling reference to c++

    ==========================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. Calling multiple UI's?
    By QtAlexander in forum Newbie
    Replies: 8
    Last Post: 10th December 2010, 22:46
  2. calling Cmd prompt
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 8th May 2009, 09:50
  3. send own class reference throught signal
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2008, 21:55
  4. Calling Webservices from QT4
    By Declan in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2007, 08:04
  5. Calling QApplication from a Non-QT app?
    By hickscorp in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 22:00

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.