func( float&,float&,float&,float&);
float a,b,c,d;
a = AspinBox->cleanText().toFloat();
b = BspinBox->cleanText().toFloat();
c = CspinBox->cleanText().toFloat();
d = DspinBox->cleanText().toFloat();
QMessageBox::about(this,tr
("ED apical trim in mm #"),strA
);
//value read back is correct func(a, b, c, d); //I guess this function is causing error
QDoubleSpinBox *AspinBox,*BspinBox,*CspinBox,*DspinBox;
func( float&,float&,float&,float&);
float a,b,c,d;
AspinBox= new QDoubleSpinBox;
BspinBox= new QDoubleSpinBox;
CspinBox= new QDoubleSpinBox;
DspinBox= new QDoubleSpinBox;
a = AspinBox->cleanText().toFloat();
b = BspinBox->cleanText().toFloat();
c = CspinBox->cleanText().toFloat();
d = DspinBox->cleanText().toFloat();
QString strA = QString::number( a );
QMessageBox::about(this,tr("ED apical trim in mm #"),strA ); //value read back is correct
func(a, b, c, d); //I guess this function is causing error
To copy to clipboard, switch view to plain text mode
Bookmarks