hello,
I have a rather simple question.
I have 2 lineEdit boxes. In the first box i want to type a number (only numbers should be allowed) and as soon as the number has been typed, it has to appear in the second lineEdit box but multiplied by 2. How can i create this in Qt? The UI is already made.
I created my own function and then i want to edit the code in Qt.
void Math::Math2()
{
#get number A from lineEdit_A
a = strtoint(self.lE_A.text().ascii()) -do i need str to int?
#multiply by 2
b = 2*a
#fill in B into lineEdit_B
inttostr(self.lE_B.insertItem(b))
}
I managed to make a lineEdit and when clicking the button it appears in a list box, but how do you do this with numbers?
Thank a lot, greetings.
Bookmarks