473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

QT ListBox and sorting...

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

Jul 22 '05 #1
3 5728
"Leszek Klich" <le**********@wp.pl> wrote...
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
Jul 22 '05 #2
sorry for my english...
Function for sorting elements in listbox (QT library).

U¿ytkownik "Victor Bazarov" <v.********@comAcast.net> napisa³ w wiadomo¶ci
news:CvBNb.62047$5V2.70059@attbi_s53...
"Leszek Klich" <le**********@wp.pl> wrote...
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

Jul 22 '05 #3
Leszek Klich wrote:

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.

--
Karl Heinz Buchegger
kb******@gascad.at
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marri Suliez | last post by:
Has anyone found some documentation on how to properly subclass a ListBox control and provide custom sorting (when the list items come from a DataSource)? The only way I can figure out how to do...
4
by: Jason | last post by:
Here is an odd issue. I am trying to shed some light on why this is causing a problem. I have an ArrayList. I am binding it to a ListBox control with has its Sort property set to True. If the...
3
by: Mike Top | last post by:
I want a listbox to position to a letter provided by the user. Normally, when the user keys a letter, the listbox positions automatically to the first entry starting with that letter in the first...
7
by: 00_ChInkPoIntD12 | last post by:
Can anyone confirm there isn't a Sort() method for WebControl Listbox in Asp.net? It is rather simple to write a method to do the sorting, but just wondering I shouldn't invent the wheel if...
2
by: Joe Fallon | last post by:
I have 2 listboxes on a Web Form. As I move an item from 1 to the other it shows up at the end of the list. How can I sort the list that just got the new item added to it so it is in alphabetical...
1
by: valen1260 | last post by:
I'd like to have a multicolumn listbox, with one column being a list of items and the other being a list of checkbuttons. The user could check his "favorites" and then shorten the list to show...
14
by: Paul_Madden via DotNetMonster.com | last post by:
Basically I have a listbox to which I add simple STRING items- I have a progress bar which I increment whenever I populate another portion of the complete set of items I wish to add. What I observe...
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
1
by: jasydnor | last post by:
Hi, New to the forums and have a question. I've only been developing for about five months now so I apologize if this seems oversimplistic....I am writing a program on an idea I had on a whim. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.