Hey guys, i'm making a simple currency exchange application and i need a widget for a number input from my future users.
I've been doing some reading and can't seem to find "the best solution" for getting the input.
I first thought of using a textEdit, and a QValidator to restrict the input for numbers only, but other(s) suggest that a QSpinBox would be a better option.
I would like to skip the part of coding where i have to check if the input is number etc, etc... and just bluntly ignore any other input if its not a number.
Basicly I want it to look and act like a basic windows calculator's input.
I dont want it to act like a QSpinBox because i dont need steps which the SpinBox offers;I know i can visually remove the arrows, but can i "remove" the mechanism completely?
Or to put it simple:
What widget is the best to use if i want to mirror a basic calculator input?
Bookmarks