RSS View

Let’s add a new view to our app where we can display some information from a web service using our new classes.

There is nothing new or complicated here, so I won’t show all the code, but there are a few steps to remember:

  1. Create a new RssView.qml view in cm-ui/views and copy the QML from SplashView for now, replacing the "Splash View" text with "Rss View"
  2. Add the view to views.qrc in the /views prefix block and with an alias RssView.qml
  3. Add the goRssView() signal to NavigationController
  1. In MasterView, add the onGoRssView slot to the Connections element and use it to navigate to RssView
  1. In NavigationBar, add a new NavigationButton with iconCharacter uf09e, description RSS Feed, and hoverColour as #8acece, and use the onNavigationButtonClicked ...

Get End to End GUI Development with Qt5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.