Hi Tadeusz,
Although Qt docs don't mention it specifically, I suspect that
QSqlTableModel's setFilter method resets the model causing the attached
views redrawing themselves, including their headers. You clould use a
QSortFilterProxyModel which would not reset upon setting its filter,
resulting in
ma, 2015-02-16 kello 15:49 +0100, Tadeusz Sośnierz kirjoitti:
> Hey,
> I started writing myself a little app with D&D spell list. Worked well
> enough until I tried the search functionality. I'm using SilicaListView
> with SearchField in it to grep through the QSqlTableModel, and when I
> type one
Hey,
I started writing myself a little app with D&D spell list. Worked well
enough until I tried the search functionality. I'm using SilicaListView
with SearchField in it to grep through the QSqlTableModel, and when I
type one letter into the search box it clears itself and defocuses the
keyboard.
Hey,
I started writing myself a little app with D&D spell list. Worked well
enough until I tried the search functionality. I'm using SilicaListView
with SearchField in it to grep through the QSqlTableModel, and when I
type one letter into the search box it clears itself and defocuses the
keybo