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

Help with example rss news in setting custom rss address



  • Hello, I am trying to customize the rss address to the following "

    http://www.pamakhouse.gr/forums/external.php?do=rss&type=newcontent&sectionid=1&days=120&count=10

    This is my model:

    XmlListModel {
    id: feedModel

        source: "http://" + window.currentFeed
        query: "/rss/channel/item"
    

    XmlRole { name: "pubDate"; query: "pubDate/string()" }
    XmlRole { name: "title"; query: "title/string()" }
    // Remove any links from the description
    XmlRole { name: "description"; query: "description/string()" }
    //XmlRole { name: "image"; query: "media:content/@url/string()" }
    XmlRole { name: "link"; query: "link/string()" }
    XmlRole { name: "guid"; query: "guid/string()" }
    }

    But I jus get a blank screen. Does anyone know what is wrong? Thanks!


Log in to reply