In Qt is this:
void s1 () / / number keys '1 'slot function
{
if (A2 == "0") / / If A2 is 0 Alternative 0
A2 = "1";
else / / If not, get the current text edit box contents, click the button in the text box contents thick add 1
{
A2 = lineEdit-> text ();
A2.append ('1 ');
}
lineEdit-> setText (A2); / / A2 in the text edit box will display < br /> }
The hanging written with Qt calculator button "1" slot function content, but does not translate to Xcode, find great God translated! ! ! ! Necessary homework tonight, and not on the teacher pay deduction credits,
Reply:
Just contact, just know that something like this for the button text displayed in a Label on
NSString * myText = [sender currentTitle];
self.showOut.text = [self.showOut.text stringByAppendingString: myText];
No comments:
Post a Comment