stackedWidget with arrows
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
Re: stackedWidget with arrows
Quote:
Originally Posted by
Zergi
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.
Re: stackedWidget with arrows
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.