[Qt-interest] returning 2-D Array of String
Ross Driedger
ross at earz.ca
Mon Feb 15 14:20:02 CET 2010
On 15-Feb-10, at 7:49 AM, qt-interest-request at trolltech.com wrote:
> Message: 6
> Date: Mon, 15 Feb 2010 18:14:39 +0530
> From: Chitrang Srivastava <chitrang.srivastava at gmail.com>
> Subject: [Qt-interest] returning 2-D Array of String
> To: qt-interest at trolltech.com
> Message-ID:
> <75ad89fd1002150444o21950505hfa0807a8f7db1925 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Experts,
>
> What is the best to return two-dimensional array of strings from a
> function,
> I mean is their any QT-Specific supported API/Class. ?
>
> For example I want to return 2-d QString array.
>
> "String 1" , 'String 2", "String 3"
> "String 4" , 'String 5", "String 6"
> "String 7" , 'String 8", "String 9"
>
>
> Are their any easier method provided by QT apart from traditional C/
> C++
> way?
Write your function to return an instance of QList< QStringList >.
C++ in the 21st century as given up on the C concept of the array.
Get to know the Qt collection classes and the standard template
library. It will save you a ton of time over your career.
Ross Driedger
ross at earz.ca
519-913-1862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100215/d7a7f27f/attachment.html
More information about the Qt-interest-old
mailing list