PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

My tutorial on how to properly use QThreads | Qt Project forums | Qt Project

jeudi 6 mars 2014 à 09:34
Fylhan's links lounge, le 06/03/2014 à 09:34
"When you move a parent QObject, all its children are automatically moved too.

Remember though that member variables do not automatically become children; the parent-child relationship must be set by either:
* passing the parent’s pointer into the child’s constructor, or
* calling QObject::setParent()
"

J'ai comme le sentiment que cette remarque devrait être beaucoup plus visible dans les tutoriels sur les threads Qt !!!
(Permalink)