PDA

View Full Version : Scroll bar in QTabWidget



vinithr
24th May 2012, 17:45
Hi,

I have a query regarding scroll bar in QTabwidget.

I have a main window. In that i have a tabwidget. In the tabwidget,there are so many pushbuttons.So that i need to add scrollbar for the tabwidget.

I tried to add QScroll area and enable scroll bar in that.But When i run my application i couldnot able to operate the scrollbar in that scroll area.

How can i activate the scrollbar.??


Could you please explain me with some piece of source code,so that i can understand better.

Thanks in Advance.

Regards.
Vinithr

nish
25th May 2012, 07:33
1. Create a widget (wA) with all the push buttons.
2. Create a scrollArea (sA) and set its inner widget as (wA).
3. Put (sA) in the tab of tab widget.
4. repeat steps for all other tabs.

vinithr
28th May 2012, 13:04
Thanks for your reply.


Could you please explain me with some source that how to create inner widget of scroll area??

vinithr
28th May 2012, 17:16
Hi thanks for your help. Now its working fine.