Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can someone please tell me the meaning of this code ???
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 4.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    @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..

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vsorokin
        wrote on last edited by
        #3

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

        --
        Vasiliy

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

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

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            [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.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              This code handle data ,
              This may be parsing example.

              Like XML parsing in Qt.

              And also CRSSFeedParser is the external class,..

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                thank you all for your valuable reply....

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved