@jsulm Oh. I haven't considered that. I'm definitely going to try that. I don't know why it didn't came to my mind. Thank you very much. I really appreciate your advice. I have been stuck at this problem for a week. I am glad there are people who are willing to help beginners.
@Onikouzou What is this checkbox used for?
If you only want to use a combobox then do:
soundList << "Sound 1" << "Sound 2";
showSounds.setOptions(QInputDialog::UseListViewForComboBoxItems); // Remove this if you want a combobox instead of a list
Actually, my idea is to have a storage of different wooden blocks in user interface and drag them one-by-one to working area to design a house model and then generate a txt file containing the stream of the coordinates (including some other attributes like color, shape) of building blocks.
@Wieland, this float number is represent the speed Value of DC motor in RPM, may you mean I it should be in double type or something else!!.
in fact I don't know obviously whit's the type I should use this is the GUI I built link text
you can see in Stack-overflow here: link text
may you get what I need, I'am sory to be annoying but I spent alot of time in this problem :(
Ah ok, so it is due to the organization of C++ not Qt, and like you said, the difference of a class instances and pointers.
It has been long time since I've had to use C++ and I never did anything too advance with it other than a text-based adventure game. I generally am more focused on hardware oriented programing such as with C and Verilog, and MATLAB is the only more software (excluding Arduino interaction) oriented language I have decent experience with.
Thank you for pointing out why there needs to be a difference. I wasn't familar with pointer usage in C++.