I have "template widgets" that I create within the layout editor. I then have a dynamic within my application which requires me to create a number of widgets that are "like the template". This means that most of the properties of these newly created widgets should be identical to the properties of the template. The number of properties that differ is a much shorter list than the number of properties that are the same.
For this reason I'd like to use a convenience function that copies all of the properties of the template window to the actual window.
The syntax would be something along the lines of:
Code: Select all
toWindow->copyProperties(fromWindow); // fromWindow must be of same type as toWindow
Does this kind of function exist? If not is there a simple way to construct it?
Thanks.