[Qt-interest] tweaking QStackedWidget

Akshey Jawa aksheyjawa at gmail.com
Mon Nov 23 12:20:08 CET 2009


Ohh... right !!!
I was just previewing them in designer :)

Thanks

On Mon, Nov 23, 2009 at 3:57 PM, Sean Harmer <
sean.harmer at maps-technology.com> wrote:

> Hi,
>
> On Monday 23 November 2009 10:18:55 Akshey Jawa wrote:
> > I am using QStackedWidget. As shown in the attachment, it is showing
> small
> > arrows to change the pages; but I do not want that. I want the pages to
> > change only when the user selects some entry from the combo box. In
> short,
> >  I want to remove the left and right buttons from QStackedWidget. Is it
> >  possible?
> > I could have tried this using QStackedLayout but that is not available in
> > Designer and I would prefer not to spend time in coding the things which
> >  can be done in designer.
>
> Those small arrows only appear in Designer as a convenience to you at
> design
> time for switching between pages. They do not appear in your running
> application.
>
> To change pages in your app just make a connection from QComboBox's
> currentIndexChanged( int ) signal to QStackedWidget's setCurrentIndex( int
> )
> slot. Only one line of code - or you could even do it in designer with the
> signal-slot editor.
>
> Have fun,
>
> Sean
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091123/b9e2bfad/attachment.html 


More information about the Qt-interest-old mailing list