Re: [SailfishDevel] Problem with SearchField hiding and clearing on text entry

2015-02-17 Thread Krisztian Olah
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

[SailfishDevel] Problem with SearchField hiding and clearing on text entry

2015-02-16 Thread Tadeusz Sośnierz
Hey, I started writing myself a little app with DD 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.

[SailfishDevel] Problem with SearchField hiding and clearing on text entry

2015-02-16 Thread Tadeusz Sośnierz
Hey, I started writing myself a little app with DD 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