[Qt-interest] How to see a part of the QStringList

Tim W timpie.w at gmail.com
Sun Apr 26 15:26:37 CEST 2009


--
An Apple a day keeps Windows away

ACCU - http://www.accu.org - Professionalism in Programming.
> I have made it as you told me but it still doesn't work
>     sensor1->setText(list.at(0));
>     sensor2->setText(list.at(1));


Never use


On Sun, Apr 26, 2009 at 10:55 AM, Zeljko <zeljko at holobit.net> wrote:

> Stefanos Antaris wrote:
>
>
> > I have made it as you told me but it still doesn't work
> >     sensor1->setText(list.at(0));
> >     sensor2->setText(list.at(1));
> >     sensor3->setText(list.at(2));
> >     sensor4->setText(list.at(3));
> >     sensor5->setText(list.at(4));
> >
> >
> > If i just leave the first sensor without the others it works fine.But
> > when i try to use the others it crashes.
>
> Because list is out of bounds ? :)
> Check list size.
>
> _______________________________________________
> 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/20090426/3caac380/attachment.html 


More information about the Qt-interest-old mailing list