qcompleter

Can I make QCompleter complete inline and show a popup.

Qt 4.5 (PyQt 4.6.1) I'm looking for a widget similar to a QComboBox that automatically filters its entries to the ones starting with the input in the text field. There are around 300 items in the combo box. I've tried two approaches: QLineEdit with QCompleter Advantages Filtering the items works. Disadvantages Doesn't show a po...

How to update QCompeter's model dynamically

I use QCompleter with QLineEdit, and I want to update QCompleter's model dynamically. i.e. the model's contents are updated according to QLineEdit's text. 1) mdict.h #include <QtGui/QWidget> class QLineEdit; class QCompleter; class QModelIndex; class mdict : public QWidget { Q_OBJECT public: mdict(QWidget *parent = 0); ~...

QCompleter forces double enter

Hello, I have a QCompleter that is forcing my users to hit enter twice when the popup is visible but is not used to select an item. The model for the QComboBox associated to the completed is used as the model for the completer. QCompleter *completer = new QCompleter(this); completer->setCaseSensitivity(Qt::CaseInsensitive); comple...

Qt QCompleter multiple matches

I am trying to make QCompleter match several equivalent options which are separated with commas. There seemingly is no easy way to do that, but one line of QCompleter reference caught my attention, describing function QCompleter::splitPath: "When used with list models, the first item in the returned list is used for matching." Could this...