In this chapter, we will focus on a few basic widgets. These enable the user to choose one or more options and select integer or float values from a specified range. Not only will you learn how to display options to the user but also how to add, delete, or modify existing options. We will cover the following in this chapter:
Using radio buttons
Entering integer and float values using a spin box
Scroll bars and sliders
Working with List widget
Let’s begin the chapter with radio buttons.
To display selectable options that are mutually exclusive (selecting one option automatically deselects other options in the group), you use Radio Button widgets, which are instances of the
QRadioButton class. ...