QT ListBox and sorting...

L

Leszek Klich

Hello All !

I have a task:
QT library:

List ListBox. I generating n random numbers from range 0 to 100. I have to
sort it by hand... It has to look nicely. It's my workhome from my school.
Sorting must visualise (preview) process in list. Any method of sorting. I
do not want to use stantard methods including to QT. I have ready: (main
window, list, slider (count elements to generic), button: generic numeric
random and button: sort list), wihout function with algoytm sort.

I greet and please help.
Leszek Klich
 
V

Victor Bazarov

Leszek Klich said:
I have a task:
QT library:

List ListBox. I generating n random numbers from range 0 to 100. I have to
sort it by hand... It has to look nicely. It's my workhome from my school.
Sorting must visualise (preview) process in list. Any method of sorting. I
do not want to use stantard methods including to QT. I have ready: (main
window, list, slider (count elements to generic), button: generic numeric
random and button: sort list), wihout function with algoytm sort.

I greet and please help.

How can we help? Please be more specific.

Victor
 
L

Leszek Klich

sorry for my english...
Function for sorting elements in listbox (QT library).
 
K

Karl Heinz Buchegger

Leszek said:
sorry for my english...
Function for sorting elements in listbox (QT library).

the listbox has nothing to do with it.

What you are looking for, is some sorting algorithm.
Search the web, there are plenty of web sites explaining
sorting algorithms.

A good starting place is: http://www.google.com
Enter for the search string : sort C++ algorithm
That should keep you going.

Oh, and plaese. Do not top post. Put our reply beneath
the text you are replying to as I have done now and
snip what you no longer need in your reply. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,414
Latest member
GayleWedel

Latest Threads

Top