[Qt-interest] returning 2-D Array of String

Volker volker at openbios.org
Mon Feb 15 14:01:30 CET 2010


On Monday 15 February 2010 13:44:39 Chitrang Srivastava wrote:
> 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?
> 

You could return a QList of QStringLists

QList< QStringList > 

not an array, but almost same behaviour.






More information about the Qt-interest-old mailing list