Results 1 to 2 of 2

Thread: How do i search from items of list widget ??,

  1. #1
    Join Date
    Apr 2020
    Posts
    6
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default How do i search from items of list widget ??,

    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.xbwyM.png.
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,719
    Thanks
    259
    Thanked 760 Times in 750 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: How do i search from items of list widget ??,

    The Qt documentation is also really helpful. Reading it is even more helpful.

    QPushButton::clicked()
    QLineEdit::text()
    QListWidget::findItems()
    QListWidgetItem::setBackground()
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. List Widget drag drop items
    By alexoparin in forum Qt Programming
    Replies: 1
    Last Post: 10th January 2014, 16:58
  2. Replies: 4
    Last Post: 8th January 2013, 22:08
  3. Replies: 1
    Last Post: 14th November 2012, 22:00
  4. How to use list of items?
    By Squall in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2012, 01:22
  5. Replies: 1
    Last Post: 23rd April 2011, 18:33

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.