Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Can someone please tell me the meaning of this code ???



  • @CRSSFeedParser *parser = new CRSSFeedParser(CRSSFeedParser::kRSSFeed);

    connect(parser, SIGNAL(notifyFeedData(FeedData)),this, SLOT(handleFeedData(FeedData)));

    void CItemListWidget::handleFeedData(FeedData data)
    {
    int count = data.items.count();
    qDebug() << "Feed Count:" << count;
    for(int index = 0; index < count; index++){
    FeedDataItem feedItem = data.items[index];
    CItemWidget *item = new CItemWidget(feedItem, this->width(), this->height(), m_kItemType);
    vScrollLayout->addWidget(item);@

    Please someone explain me about this code..



  • As mentioned in your other thread do some reading on Qt.



  • This code handle data, read it one by one and create widgets and put them to Scroll Layout



  • Can you please tell me about the use of CRSSFeedParser in the above example ...



  • [quote author="Prajnaranjan Das" date="1293527397"]Can you please tell me about the use of CRSSFeedParser in the above example ...[/quote]

    AFAIK CRSSFeedParser is not a part of Qt API. It is a class defined inside your project. Go through the source code.



  • This code handle data ,
    This may be parsing example.

    Like XML parsing in Qt.

    And also CRSSFeedParser is the external class,..



  • thank you all for your valuable reply....


Log in to reply