Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi. How can we fill a QMap using qFill()? How should we supply the values to be filled?
Posted

1 solution

Here is how to do it:
XML
QMap<int, int> _map;
_map.insert(0, 10);
_map.insert(1, 11);
_map.insert(2, 12);
_map.insert(3, 13);
_map.insert(4, 14);
_map.insert(5, 15);

qFill(_map.begin(), _map.end(), 10);


Regards,
Saurabh
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900