Reddit Example | Qt Network Authorization 5.9

Qt Documentation (Technology Preview) | Qt Network Authorization | Qt Network Authorization Examples | Reddit Example

Qt 5.9.3 Reference Documentation

# Reddit Example

The Reddit example uses OAuth 2, as supported by Qt Network Authorization, to sign in to Reddit and display the Reddit posts (in text format) associated with the authenticated user.

To use this example, a consumer key from Reddit is needed. To register the application visit https://www.reddit.com/prefs/apps/.

## Running the Example

To run the example from Qt Creator, open the Welcome mode and select the example from Examples. For more information, visit Building and Running an Example.

Files:

- redditclient/redditmodel.cpp
- redditclient/redditmodel.h
- redditclient/redditwrapper.cpp
- redditclient/redditwrapper.h
- redditclient/main.cpp
- redditclient/redditclient.pro