wysota, thanks very much.

I know what you mean.

now what i want to do is to implement it as a widget such as QTabbar or QSpinBox, so that i can integrate it into Qt Designer and use it by applications conveniently.

any suggestion about it ? thanks in advance.