[Qt-interest] Newbie: how to shift focus to a tab widget
john doe
thebiggestbangtheory at gmail.com
Mon May 4 01:55:45 CEST 2009
On Sun, May 3, 2009 at 4:30 PM, Stephen Jackson <spjackson42 at gmail.com>wrote:
> On 03/05/09, john doe wrote:
> >
> > I want that when the button is clicked some computation is done and once
> > finished the focus shifts to a text box showing the errors/output. I want
> >
>
> In the slot that handles the button's clicked() signal, you need some
> code like this:
>
> tabWidget->setCurrentIndex(1); // change the page on the tabWidget
> textCtrl->setFocus(); // and set the focus to some widget on that
> page
awesome! thank you!
>
>
> > If anyone can point me to any tutorials/code it would be awesome.
> >
>
> http://doc.trolltech.com/4.5/index.html
>
> Regards,
>
> Stephen Jackson
> _______________________________________________
> 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/20090503/0a5af2f3/attachment.html
More information about the Qt-interest-old
mailing list