Selecting multiple list items from one List Widget and displaying them in another
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.
How to do it...
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 Buttonstemplate and drag and drop twoLabelwidgets and twoList Widgetonto the form. - Set the text property of the first
Labelwidget asDiagnosis Testsand that of the other toSelected tests are. - Set the
objectNameproperty of the firstList WidgettolistWidgetDiagnosisand of the secondList WidgettolistWidgetSelectedTests. - To display diagnosis tests...