Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, August 2006
Hiding/disabling arrows in QStackedWidget


Message 1 in thread

This may be an abuse of QStackedWidget, but it makes sense to me. :)

I'd like to control what page the StackedWidget is displaying, and move to a 
certain page based on certain events or states.  However, I didn't see 
anything in the properties for the widget or in the docs for disabling or 
hiding the left/right arrows.  Is this the case, or did I miss something?  Am 
I looking at subclassing QStackedWidget?

j

-- 
 [ signature omitted ] 

Message 2 in thread

left-right arrows are displayed only in designer, just for design purpuses.
Use void setCurrentIndex ( int index ) or void setCurrentWidget ( QWidget  
* widget ) slots to control visible widget from your code.

fanda

On Wed, 02 Aug 2006 02:18:36 +0200, Joshua J. Kugler  
<joshua@xxxxxxxxxxxxxx> wrote:

> This may be an abuse of QStackedWidget, but it makes sense to me. :)
>
> I'd like to control what page the StackedWidget is displaying, and move  
> to a
> certain page based on certain events or states.  However, I didn't see
> anything in the properties for the widget or in the docs for disabling or
> hiding the left/right arrows.  Is this the case, or did I miss  
> something?  Am
> I looking at subclassing QStackedWidget?
>
> j
>



-- 
 [ signature omitted ] 

Message 3 in thread

On Wednesday 02 August 2006 01:40, Fanda Vacek wrote:
> left-right arrows are displayed only in designer, just for design purpuses.
> Use void setCurrentIndex ( int index ) or void setCurrentWidget ( QWidget
> * widget ) slots to control visible widget from your code.

So they are.  Thanks for the tip.  I guess I could have just tried it, but 
since the arrows were shown in preview mode (which I *assumed* to be a "live" 
view), I then assumed the arrows were shown when the program ran.

Thanks.

j

>
> fanda
>
> On Wed, 02 Aug 2006 02:18:36 +0200, Joshua J. Kugler
>
> <joshua@xxxxxxxxxxxxxx> wrote:
> > This may be an abuse of QStackedWidget, but it makes sense to me. :)
> >
> > I'd like to control what page the StackedWidget is displaying, and move
> > to a
> > certain page based on certain events or states.  However, I didn't see
> > anything in the properties for the widget or in the docs for disabling or
> > hiding the left/right arrows.  Is this the case, or did I miss
> > something?  Am
> > I looking at subclassing QStackedWidget?
> >
> > j

-- 
 [ signature omitted ]