Quote Originally Posted by eleanor View Post
I have some other problems. How can I add QLineEdit(this); into a loop. So there would be 1 QLineEdit displayed where the userwould put in a number 25 (just an example) and then 25 more QLineEdit's would be displayed?
Read this: http://doc.trolltech.com/4.1/tutorial-t6.html

You probably want to use QVBoxLayout instead of QGridLayout (and don't forget to invoke show() on each widget, if you create them after their parent was shown). You can use QList to store pointers to line edits, so that you can delete them when the user wants to reduce their number.