[Interest] How to deal with database specific syntax

2015-02-11 Thread pmqt71
Hi all, in my Qt application I've to duplicate sql instructions for MySql and Postgres due to different sql syntax. Most problems are on date types. For instance, MySql has DATEDIFF, Postgres has EXTRACT, CAST... Without using ORMs, is there a way to manage specific sql syntax? Thanks pm

[Interest] QLineEdit upper case

2014-08-08 Thread pmqt71
Hi, I need a QLineEdit control that forces user input in uppercase while editing, not after loosing the focus. I'm trying different ways but each has side effects: - using the textEdited signal to make the text upper : bad behaviour if editing in the middle; - using a validator : dislike this