PDA

View Full Version : QLineEdit



therealjag
23rd February 2006, 18:29
hey there could some1 show me an example please of how i could use QLineEdit in a QPaint application? all i want to do is get a number from the user and display it on the paint screen. thanks, Jag

jacek
23rd February 2006, 18:45
You can try QInputDialog::getInteger() or create frameless QLineEdit in the place you want the number to be entered, wait until user finished editing (check QLineEdit signals), get the number, destroy the line edit and draw the number.