Thanks Caius Aérobus!

But I don't want to use seperate classes to solve my problem. Is there any other way to solve it.
Or any idea which can be implemented using qt only (without third party library).

Regards,
Sandip