Hi,
I have considered this approach previously but I thought there might be a
specific Qt function or a more elegant solution. I can implement this
method if
another solution does not present itself.
Cheers.
Quoting Robert Schulze <[EMAIL PROTECTED]>:
Hi,
if the array-indices won't go too big, you could join the tuple the
following way:
First Index * 10
+
Second Index * 1
Sample:
0,3 => 0*10 + 3 = 3
1,1 => 1*10 + 1 =11
1,2 => 1*10 + 2 =12
2,1 => 2*10 +1 =21
in this solution your indices must be kept in the range 0..9.
Its easy to extend to indices from 0..99:
12,42 => 12*100 + 43 =1243
1,20 => 1*100 + 20 =120
Maybe this helps...
Rob
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel
--
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org/ - The Linux Audio Users guide
Http://www.djcj.org/gigs - Gigs Guide Korea
========================================
Being on stage with the band in front of crowds shouting, "Get off! No!
We want normal music!", I think that was more like acting than anything
I've ever done.
Goldie, 8 Nov, 2002
The Scotsman
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel