Thanks, it works.

Now I only need to know how slow will this work. Because in the future I'll have to add 100.000 towns in the mysql table and in QComboBox. So will this be instant, or will take a lot of time.

And how to add items in that QComboBox based on alpabetical order?