Either works. Are you thinking perhaps the viewport's parent may change?
I can see that obj == textEdit->viewport() has more certainty.
Regardless, thanks again for the help.
Either works. Are you thinking perhaps the viewport's parent may change?
I can see that obj == textEdit->viewport() has more certainty.
Regardless, thanks again for the help.
Last edited by Henry Blue Heeler; 10th April 2015 at 00:10. Reason: Solved
Yes, the object (viewport) could have multiple parents (unlikely in this scenario), but I get the nuance. Better practice, per se. Thx.
Bookmarks