QlistWidget



  • hi, i 'm begginer learn qt,for example , I wanted to create a list of labels to be displayed and when I click on the label something should happen.
    Instead of doing that I created a QListWidget with String, but i can not connect database(sqlite) with qlistwidget as qlistview(setmodel)! can everyone help me?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    No you can't as QListWidget already has a model tailored to its use case.

    Now the question is: why do you want to show labels if you are using a QListView with content coming from a database ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.