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 in

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

2015-02-17 Thread Pekka Vuorela
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

[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 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.

[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 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