I am sorry, but sub classing is C++ basics, and its off topic for this forum.
You will be more helped on C++ tutorial sites.
However feel free to ask any Qt related questions you have.
If you are not comfortable with sub classing, why do you go for option 2 and not option 1?
Bookmarks