On Fri, Jul 31, 2015 at 3:09 PM, Freddy Martinez Garcia <
Post by Freddy Martinez GarciaI can't use combobox because the lineedit is used for searching...
You can use a QLineEdit and a QListView to get the same effect as the
QCompleter,
you need to hook up a few things, of course:
QLineEdit::textChanged signal should be connected to the
QSortFilterProxyModel::invalidate
QSortFilterProxyModel should be the model on the QListView
the show/hide events of the QListView should be deal with and you will need
a eventFilter to handle the up/down keys to send them to the QListView from
within the QLineEdit
It's doable ( I have something like this in my particular software if you
wanna take a look ) - I had to create this because QCompleter doesn't deal
with QRegExp.
(also, if it's desirable, we could add a new CompletionMode on QCompleter -
QCompleter::RegExpCompletion )
Post by Freddy Martinez Garciaabout the QSirtFilterProxyModel, the problems is that QComplet build his
own model inside when you give him a model... is what i'm seeing in its
behavior...
for that is my question
regards
*============================================="El tamaño de tus logros
depende del tamaño de tus metas." *
*C++ and Qt Senior Developer*
*Lic. Computer Science*
*Buenos Aires, Argentina*
Post by Tomaz CanabravaOn Fri, Jul 31, 2015 at 1:20 PM, Freddy Martinez Garcia <
Post by Freddy Martinez GarciaHi guys... can I use regular expressions with QCompleter ???
You cant easily do that ( unless you override the model that QCompleter
has ), but you can use a QSortFilterProxyModel and a QComboBox with the
same effect.