Re: [Development] Use of Standard Library containers in Qt source code

2016-07-12 Thread Jake Petroules
I always find it hilarious how people start debates about UTF-8 vs UTF-16 in string APIs. Let us not forget that in an ideal world, the QString API wouldn't expose the underlying encoding *at all*, and it would be an implementation detail unknown to users. See Swift's String class for example:

Re: [Development] Use of Standard Library containers in Qt source code

2016-07-12 Thread charleyb123 .
On Tue, Jul 12, 2016 at 3:47 AM, Marco Bubke wrote: > , Lets face it, the world is much bigger than Qt, and I think there > is much to gain if we integrate better with alien libraries. > My understanding is that most alien libraries are not binary-based (i.e., they are ternary

Re: [Development] QTableView gets freezed in showing data read from SQLite database , which is updated dynamically with 2000 rows in 2s

2016-07-12 Thread Giuseppe D'Angelo
Il 12/07/2016 14:19, Mitch Curtis ha scritto: >It does not create any sub widget. The whole point of the design of item >views is to use a few delegate objects (1, out of the box) to paint >themselves, not to create thousands of sub-widgets. So what Andre said ("2k push buttons") is wrong?

Re: [Development] QTableView gets freezed in showing data read from SQLite database , which is updated dynamically with 2000 rows in 2s

2016-07-12 Thread Mitch Curtis
> -Original Message- > From: Development [mailto:development-bounces+mitch.curtis=qt.io@qt- > project.org] On Behalf Of Mitch Curtis > Sent: Tuesday, 12 July 2016 2:19 PM > To: Giuseppe D'Angelo ; development@qt- > project.org > Subject: Re: [Development]

Re: [Development] QTableView gets freezed in showing data read from SQLite database , which is updated dynamically with 2000 rows in 2s

2016-07-12 Thread Mitch Curtis
> -Original Message- > From: Development [mailto:development-bounces+mitch.curtis=qt.io@qt- > project.org] On Behalf Of Giuseppe D'Angelo > Sent: Tuesday, 12 July 2016 11:28 AM > To: development@qt-project.org > Subject: Re: [Development] QTableView gets freezed in showing data read >

Re: [Development] Use of Standard Library containers in Qt source code

2016-07-12 Thread Marco Bubke
> Why would we want UTF-8? There's no native type for it, unlike UTF-16's > char16_t. And ALL the good Unicode-capable API in most OSes uses UTF-16 (Java, > ICU, Win32, Cocoa, all are UTF-16; POSIX's wide-char API is neither good nor > guaranteed to be UTF-32). UTF-8 is used by many libraries

Re: [Development] QTableView gets freezed in showing data read from SQLite database , which is updated dynamically with 2000 rows in 2s

2016-07-12 Thread Giuseppe D'Angelo
Il 12/07/2016 10:49, Mitch Curtis ha scritto: As someone who has more experience with Qt Quick, I gotta ask... does QTableView create widgets for every row in the model all at once? It does not create any sub widget. The whole point of the design of item views is to use a few delegate

Re: [Development] QTableView gets freezed in showing data read from SQLite database , which is updated dynamically with 2000 rows in 2s

2016-07-12 Thread Mitch Curtis
As someone who has more experience with Qt Quick, I gotta ask... does QTableView create widgets for every row in the model all at once? > -Original Message- > From: Development [mailto:development-bounces+mitch.curtis=qt.io@qt- > project.org] On Behalf Of André Somers > Sent: Monday, 11

Re: [Development] QImage::transformed returns shallow copy for QTransform::TxNone matrix type.

2016-07-12 Thread Benjamin TERRIER
2016-07-11 21:21 GMT+02:00 Sune Vuorela : > On 2016-07-11, Allan Sandfeld Jensen wrote: >> On Monday 11 July 2016, Benjamin TERRIER wrote: >>> QImage::detach() is not public API. >>> However QPixmap::detach() is, so why QImage::detach() couldn't be made >>>