Il 23/05/2016 18:11, Konstantin Tokarev ha scritto:
Hello,

I've stumbled upon QPixmap having operator=(QPixmap&&) but missing 
QPixmap(QPixmap&&), however it seems like there are a lot of Qt classes in the same 
situation, for example:


[snip]

Is there any good reason for these classes to not have move constructor, or is 
it just an unfortunate omission?

Because the implementation of a move constructor for those classes requires the private class to be defined in the public header, but all those classes are pimpl'd, so by definition you don't have that private class available.

Cf. the "Move ctors for q_declare_shared types" thread we had some time ago, and https://codereview.qt-project.org/#/c/115213/ .

Cheers,
--
Giuseppe D'Angelo | [email protected] | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - The Qt Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to