Every widget has a parent which helps in cases of deletion, i.e. when the parent gets deleted, the child gets automatically thrown out to /dev/null.
Now I see QWidget *parent being passed to the user defined class's constructor here, in this link: http://doc.qt.nokia.com/4.7/tutorial...ook-part1.html
What does this indicate? In what way is this useful?Qt Code:To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks