[Development] Qt::MatchRecursive on QTreeWidget does not work
wim delvaux
wim.delvaux at adaptiveplanet.com
Tue Feb 14 23:46:45 CET 2017
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
help!
Thx
W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170214/06465fc8/attachment.html>
More information about the Development
mailing list