Results 1 to 2 of 2

Thread: Find with Regular Expression?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Find with Regular Expression?

    Hi All,

    I m using Qt 4.1.5 on my MAC.

    I have a link list of Item and I m showing these item in a treWidget.
    I want to searcha regular expression in the treeWidget and want to select the item if found.
    I can do search if I have to find a text but how to do it with regular expression.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Find with Regular Expression?

    Pass Qt::MatchRegExp as the second parameter to QTreeWidget::findItems().

  3. The following user says thank you to jacek for this useful post:

    vishal.chauhan (1st August 2007)

Similar Threads

  1. Regular Expression for QDate [YYYY/MM/DD] format
    By bera82 in forum Qt Programming
    Replies: 6
    Last Post: 3rd August 2019, 09:40
  2. How to get a QString from a file (use regular expression)
    By fengtian.we in forum Qt Programming
    Replies: 16
    Last Post: 31st May 2007, 11:06
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15

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.