[Development] RFC: Proposal for a semi-radical change in Qt APIs taking strings

Thiago Macieira thiago.macieira at intel.com
Wed Oct 14 23:16:56 CEST 2015


On Wednesday 14 October 2015 22:56:15 André Pönitz wrote:
> > I think there’s actually quite a few of those. In addition, it might be
> > tricky to use QStringView in signals and slots.
> 
> One could try to be clever and go through an intermediate QString
> object at least in queued connections. Or even always. 

-2 on any signal-slot special-casing for some types.

It's possible that the string in question *is* retained and there's no need to 
copy. We can't know that in QObject::activate, so we shouldn't try.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list