First let me say that I am no newbie to Qt. In fact I have been using Qt
since v 1.
I checked the source code and found this in qtreewidget.cpp (near line
3050) method findItems
d->model->match(model()->index(0, column,
QModelIndex()), Qt::DisplayRole, text, -1, flags
);
The model is a QTreeMod
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;
>
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 e