Important: Please read the Qt Code of Conduct -

One QRegExp to negate them all, possible?

  • Hello.

    I have many QRegExp's I use to "fill-in" several QSortFilterProxyModels, which in turn separate elements from a given QSqlTableModel in a convenient way.

    One of the proxy models will display the elements that don't fit in any of the other categories (in other words, the elements that don't match any of the QRegExp's).

    I am wondering if there's any straight way to fill in that proxy, without resorting to writing an "epic-size" QRegExp which negates the rest of them.

    Something like !(rx0||rx1||....||rxN). :lol:

    I've been looking the QRegExp reference info, but can't seem to find anything that's relevant.

    Thanks for any suggestion :)

Log in to reply