In the preceding application, you were selecting only a single diagnosis test from the List Widget
item. What if I want to do multiple selections from the List Widget
item? In the case of multiple selections, instead of a Line Edit
widget, you need another List Widget
to store the selected diagnosis test.
Let's create an application that displays certain diagnosis tests through List Widget
and when user selects any test from List Widget
, the selected test will be displayed in another List Widget
:
- So, create a new application of the
Dialog without Buttons
template and drag and drop twoLabel
widgets and twoList Widget
onto the form. - Set the text property of the first
Label
widget asDiagnosis Tests
and that of the other toSelected tests are
. - Set the
objectName
property of the firstList Widget
tolistWidgetDiagnosis
and of the secondList Widget
tolistWidgetSelectedTests
. - To display diagnosis tests...