Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Regular Contributor aktarjahan2003's Avatar
    Join Date
    Oct 2008
    Posts
    65
    Hi,

    I have a signal in Qt like this
    class RemoteSelector : public QDeclarativeItem
    {
    Q_OBJECT
    signals:
    void msgReceived( const QString & msg);

    ...


    in cpp

    void RemoteSelector::msgReceivedslot(const QString & msg)
    {
    qDebug()<< "<> RemoteSelector::msgReceivedslot msg " << msg;
    emit msgReceived(msg);
    }




    in QML
    onMsgReceived:
    {
    console.log("Message received")
    deviceTextTextIntro.text = msg
    }

    In console qDebug()<< "<> RemoteSelector::msgReceivedslot msg " << msg; is printed but it is not propagated to QML, any idea?

  2. #2
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,841
    I think you also need to set the Q_PROPERTY in the class header , refer here as how to use it :
    http://www.developer.nokia.com/Commu...use_Q_PROPERTY
    http://doc.qt.digia.com/qt/properties.html

Similar Threads

  1. Signal between app.
    By farewellwish in forum Symbian C++
    Replies: 7
    Last Post: 2011-05-30, 05:28
  2. Replies: 6
    Last Post: 2010-03-20, 14:06
  3. N95 - No Signal GPS !!!!!!!!!!!!!
    By deserteagle84 in forum Geolocation and Navigation
    Replies: 2
    Last Post: 2009-09-12, 15:17
  4. usb signal
    By Frijolero in forum Wired and Wireless interfaces (Closed)
    Replies: 3
    Last Post: 2008-09-16, 13:51
  5. N70 No Signal -- HELP!
    By jaofiaza in forum General Development Questions
    Replies: 5
    Last Post: 2006-09-26, 09:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved