On Wednesday 01 December 2010, 00:47:56 Hans-Peter Jansen wrote: > On Tuesday 30 November 2010, 04:02:48 James Polk wrote: > > > > For example,...supposed I set > > filterColumn to "Date" > > filterSyntax to "Wildcard" > > and finally, in filterPattern, I type 1/* (with no quotes) > > > > I would expect to get a view returned with with all the January > > dates...but I get nothing... > > If I remove the slash (/), leaving 1*, I get everything, or better > > said I get the behaviour of regExp,....if you switch filterSyntax > > to "regular expression", you'll get the same results... > > This is unfortunate: it appears, that Qt has issues with matching > date/datetime columns. > > It relies on the fact, that the date column matching is always based > on the iso format of date/time: e.g. something like > 2007-01-03T14:26:00.
Here's how this issue could be worked around properly. Does it work for you now, too? Phil, it might be worth replacing the example with the attached one. Pete
basicsortfiltermodel.py
Description: application/python
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
