[Development] Qt::MatchRecursive on QTreeWidget does not work
Marc Mutz
marc.mutz at kdab.com
Wed Feb 15 01:17:33 CET 2017
On Tuesday 14 February 2017 23:46:45 wim delvaux wrote:
> I have this code on a QTreeWidget in Qt 5.7 on Linux
>
> Qt::MatchFlags F = Qt::MatchRecursive | Qt::MatchContains |
> Qt::MatchWrap | Qt::MatchFixedString;
>
> if( ui->Regex_CB->isChecked() ) {
> F |= Qt::MatchRegExp;
> }
>
> CurrentMatches = ui->Output_TW->findItems( Txt, F );
>
> I would expect the currentMatches to contain all items that contain a Txt
> snippet. However it only returns the items with the text snippet in column
> 0
Please provide a self-contained example and file an issue at bugreports.qt.io.
Thanks,
Marc
--
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
More information about the Development
mailing list