×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    80

    Signal is not propagated to QML

    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
    Join Date
    Jun 2008
    Location
    Gurgaon,India
    Posts
    4,103

    Re: Signal is not propagated to QML

    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
    Replies: 7
    Last Post: 2011-05-30, 05:28
  2. Replies: 6
    Last Post: 2010-03-20, 15:06
  3. usb signal
    By Frijolero in forum Wired and Wireless interfaces (Closed)
    Replies: 3
    Last Post: 2008-09-16, 13:51
  4. 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
  •  
×