From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.70.44.46 with SMTP id b14mr713299pdm.4.1404767398150; Mon, 07 Jul 2014 14:09:58 -0700 (PDT) X-Received: by 10.50.131.198 with SMTP id oo6mr757701igb.1.1404767397848; Mon, 07 Jul 2014 14:09:57 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!hn18no4721465igb.0!news-out.google.com!bp9ni2747igb.0!nntp.google.com!hn18no4721437igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 7 Jul 2014 14:09:57 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5148bfa3-b3a2-497d-8197-de029074974b@googlegroups.com> Subject: Re: How to create qlabels for a table via loop? (QtAda 3.2/GPS 2014 - Beginners question) From: Adam Beneschan Injection-Date: Mon, 07 Jul 2014 21:09:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:20787 Date: 2014-07-07T14:09:57-07:00 List-Id: On Friday, July 4, 2014 7:01:33 PM UTC-7, ironshirt wrote: > Hi all!=20 >=20 >=20 >=20 > I decided to learn some programming and just started with Ada + Qt a week= ago. So far so good, but the last days I have issues with the attempt to p= opulate a QTable with a certain number (20) of QLabels via 'for' loop. Is = this generally possible? At the moment only the name of the label should be= set (for the sake of simplicity) as 'index1' to 'index20'. >=20 >=20 >=20 > Creating a single label and adding it to the table was no problem, but I = couldn't figure out how to do this in a loop. >=20 > The declaration seems to be the sticking point. Hopefully someone here ca= n give me a hint, or even better, a short example if possible. >=20 > Thanks in advance! Could you post what you've tried so far? If you were able to get it to wor= k with one label, showing us the code you've gotten to work and some indica= tion of what you'd like it to do in a loop would be helpful. =20 -- Adam