Beispiel #1
0
 function test_number()
 {
     $this->assertEquals(QString::number(24)->__toString(), "24", "Could not get string version of integer!");
     $this->assertEquals(QString::number(24.3)->__toString(), "24.3", "Could not get string version of double!");
     echo "\ntesting QString::number() passed";
 }
 protected function paintEvent($event)
 {
     $this->painter = new QPainter($this);
     $this->painter->drawText(200, 200, tr("Angle = ") . QString::number($this->currentAngle));
 }
 function read_Memory()
 {
     $this->display->setText(QString::number($this->sumInMemory));
     $this->waitingForOperand = true;
 }