[Development] Qt 5 types under consideration for deprecation / removal in Qt 6

Jedrzej Nowacki Jedrzej.Nowacki at qt.io
Mon Jun 3 09:29:37 CEST 2019


On Saturday, June 1, 2019 5:36:35 AM CEST Thiago Macieira wrote:
> On Friday, 31 May 2019 10:13:52 PDT Thiago Macieira wrote:
> > rcc should be un-bootstrapped. The only use inside QtCore is for the MIME
> > type database. We don't need a resource, though it compresses really well
> > (roughly 10:1 with zstd). I'd simply make that a read-only sharable
> > variable, which we can easily create with a C++11 raw string.
> 
> https://codereview.qt-project.org/c/qt/qtbase/+/263548
> 
> Unfortunately, MSVC doesn't want to cooperate:
> 
> .\qmimeprovider_database.cpp(1270): fatal error C1091: compiler limit:
> string exceeds 65535 bytes in length
> 

moc had similar problem, it was solved by generating something like that:

struct {
  char[65535] 
  char[65535]
  ....
}

instead of a string.

Cheers,
  Jędrek





More information about the Development mailing list