Re: [Interest] Font problem

2015-02-16 Thread Lisandro Damián Nicanor Pérez Meyer
On Monday 09 February 2015 22:31:41 henning.carl...@rosenkildeglas.dk wrote: > Hi QT experts. > > I hope you can help me out here. > > I have recently ported a QT4 on SUSELinux project into a QT5 Ubuntu. > > Most things are well but Boss complains that the text in fields and buttons > are now ex

Re: [Interest] Postgresql RETURNING clause.... possible to get it?

2015-02-16 Thread Guido Seifert
Arrghh it is that simple. Never occurred to me to try this with an INSERT. Thanks. :-) Guido On Mon, 16 Feb 2015 08:39:22 -0500 (EST) Jason Dolan wrote: > It should be as simple as: > > QSqlQuery query; > query.prepare("INSERT INTO rooms (coordinate) VALUES > (ST_SetSRID(ST_MakePoint(:l

Re: [Interest] Postgresql RETURNING clause.... possible to get it?

2015-02-16 Thread Jason Dolan
It should be as simple as: QSqlQuery query; query.prepare("INSERT INTO rooms (coordinate) VALUES (ST_SetSRID(ST_MakePoint(:lon, :lat), 4326)) returning id”); query.bindValue(“:lon”, x); query.bindValue(“:lat”, y); uint roomsId = 0; if(query.exec() && query.first()) roomsId = query.value(0

[Interest] Postgresql RETURNING clause.... possible to get it?

2015-02-16 Thread Guido Seifert
Hiya, I have a sql (postgres) statement: > INSERT INTO rooms (coordinate) VALUES (ST_SetSRID(ST_MakePoint(:lon, :lat), > 4326)) returning id; with id being a serial. Sure, I can get the id with lastInsertId(), but I wonder, if and how it is possible to get the id value from a QSqlQuery. Guido

Re: [Interest] Function overload and QML

2015-02-16 Thread Federico Buti
Ok...sorry for the spam. I've just noticed this sentence in the documentation QVariantList and QVariantMap to JavaScript Array and Object : [...] Similarly, if a C++ type uses a QVariantList

[Interest] Function overload and QML

2015-02-16 Thread Federico Buti
Hi list. I've made an intensive use of INVOKABLE/SLOT functions in QML and I've never encounted any problem. Up until now. I'm sure that function overloading works properly since I've used it a lot (also the related commit can be found here

Re: [Interest] Regarding displaying data from database in a single column only

2015-02-16 Thread Reinhardt Behm
On Monday 16 February 2015 10:51:16 André Somers wrote: > Jha Sonakumar schreef op 16-2-2015 om 09:49: > > Hi all, > > > > Generally we use to display data from database by *QTableView * rows. > > > > But i need to display all items of a row in a cell of a column,so in > > this way there will be

Re: [Interest] Regarding displaying data from database in a single column only

2015-02-16 Thread André Somers
Jha Sonakumar schreef op 16-2-2015 om 09:49: Hi all, Generally we use to display data from database by *QTableView * rows. But i need to display all items of a row in a cell of a column,so in this way there will be only one column. Could you please share any idea. Easiest would be to cre

[Interest] native resolution on iOS

2015-02-16 Thread Hamish Moffatt
We have an iOS application running using Qt 4.8. We used Mediator Software's Qt4IOS/CuteIOS work. Our application is purely widgets (no QML). This gave us native resolution on iPhone (480x320 on old models, 640x960, 640x1136 etc), and scaled resolution on iPad (1024x768 regardless of model), wh

[Interest] Regarding displaying data from database in a single column only

2015-02-16 Thread Jha Sonakumar
Hi all, Generally we use to display data from database by QTableView rows. But i need to display all items of a row in a cell of a column,so in this way there will be only one column. Could you please share any idea. Best Regards Sona ==