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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 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!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!backlog3.nntp.dca3.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 04 Jul 2014 21:01:33 -0500 From: ironshirt Subject: How to create qlabels for a table via loop? (QtAda 3.2/GPS 2014 - Beginners question) Newsgroups: comp.lang.ada X-UserIpAddress: X-InternalId: b94f77f5-3a9d-4e98-abb4-0895a8d4c3ee Message-ID: Date: Fri, 04 Jul 2014 21:01:33 -0500 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-ZXNQewgNdIZWQK27wBRWdZvhPKYzb2bSr4845ypppoGdsvdMY8wTf4s/K1SaYKpEf0Pc/KK6e1zJ4pt!Vjo2PV4r2hl+y5rNmaG14UXUEnE59JPVgR6dZYcodq15FF+9yWl6/WRWIuQIjBnKtGGvH2oHE5uO!eg== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1744 X-Received-Bytes: 1856 X-Received-Body-CRC: 684282475 Xref: news.eternal-september.org comp.lang.ada:20718 Date: 2014-07-04T21:01:33-05:00 List-Id: Hi all! 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 populate 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'. 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. The declaration seems to be the sticking point. Hopefully someone here can give me a hint, or even better, a short example if possible. Thanks in advance! Regards Michael http://compgroups.net/comp.lang.ada/