PDA

View Full Version : stackedWidget with arrows



Zergi
14th July 2008, 19:31
Hi

I've problem with stackedWidget. When I'm using designer I can see a small arrows in the right corner of this widget which can turn the page, but when I compiled my program and turned him on, there aren't those arrows... It's normal?

ps
If i made any mistakes writing this post, pleas correct me ;d

Best Regards

jpn
14th July 2008, 19:39
I've problem with stackedWidget. When I'm using designer I can see a small arrows in the right corner of this widget which can turn the page, but when I compiled my program and turned him on, there aren't those arrows... It's normal?
Yes, that's normal. QStackedWidget is a stack of widgets. It doesn't have any visible element to switch between pages. Those preview arrows are in Qt Designer so that you can easily design the pages.

Raccoon29
16th July 2008, 10:20
From designer components list you can choose other elements that store pages and let the user switch between pages as well, such as ToolBox and TabWidget. Or you can anyway add those arrows by yourself with few rows of code (thanks to qt signals/slot mechanism), increasing and decreasing StackWidget page index.