O'Reilly logo

Learn Qt 5 by Nicholas Sherriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
  2. In NavigationBar, add a new NavigationButton with iconCharacter \uf09e, description RSS Feed, and hoverColour as #8acece, and use the onNavigationButtonClicked ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required