comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: How to create qlabels for a table via loop? (QtAda 3.2/GPS 2014 - Beginners question)
Date: Mon, 7 Jul 2014 14:09:57 -0700 (PDT)
Date: 2014-07-07T14:09:57-07:00	[thread overview]
Message-ID: <5148bfa3-b3a2-497d-8197-de029074974b@googlegroups.com> (raw)
In-Reply-To: <rNednV-rV8jgwSrOnZ2dnUVZ_qGdnZ2d@giganews.com>

On Friday, July 4, 2014 7:01:33 PM UTC-7, ironshirt wrote:
> 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!

Could you post what you've tried so far?  If you were able to get it to work with one label, showing us the code you've gotten to work and some indication of what you'd like it to do in a loop would be helpful.  

                              -- Adam

  reply	other threads:[~2014-07-07 21:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-05  2:01 How to create qlabels for a table via loop? (QtAda 3.2/GPS 2014 - Beginners question) ironshirt
2014-07-07 21:09 ` Adam Beneschan [this message]
2014-07-08  1:06 ` ironshirt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox