Relative Content

Tag Archive for qtqt6

How can I implement an InsertPolicy on a QComboBox attached to QSortProxyModel?

I’ve got an editable QComboBox with a QCompleter set to a QSortProxyModel, which wraps a QAbstractListModel. If the user types a wholly new string into the box, I want to write that string into the list model so it shows up in future autocompletions. I figure that’s what setInsertPolicy() is for, but what’s the right QComboBox::InsertPolicy to use when the insert is happening through a QSortProxyModel? Or do I need to implement it another way?

Building Qt on Windows, problem with EGL/ECM

Trying to build Qt on Windows. I’ve downloaded and unpacked the big source archive, qt-everywhere-src-6.7.0, but CMake gives a bunch of error messages regarding the configuration of a module that seems to be called EGL or ECM. Any ideas?