PDA

View Full Version : How do i search from items of list widget ??,



Mr_workalota787
13th April 2020, 07:10
as seen in the image above my QListWIdget is populated with items, i want to take input from Qlineedit which is "Guide" in this case and when i click search Qpushbutton, the QlistWidget should show that items which contain text "Guide ", maybe highlight them.

Any idea how to accomplish this.

Thanks this forum is really helpful.13375.

d_stranz
13th April 2020, 16:52
The Qt documentation is also really helpful. Reading it is even more helpful.

QPushButton::clicked()

QLineEdit::text()

QListWidget::findItems()

QListWidgetItem::setBackground()