:s, do they note that in the documentation of that function? That's not OOP at all, and quite bothersome IMO.
But I'll be done whining lol; I've added:
setSpecialValueText("0.0");
setSpecialValueText("0.0");
To copy to clipboard, switch view to plain text mode
to the constructor and added the test functions
QString textSpinBox
::textFromValue() {
return thisLineEdit->text();
}
double textSpinBox::valueFromText()
{
return thisLineEdit->text().toDouble();
}
QString textSpinBox::textFromValue()
{
return thisLineEdit->text();
}
double textSpinBox::valueFromText()
{
return thisLineEdit->text().toDouble();
}
To copy to clipboard, switch view to plain text mode
but it still shows "0.00" as it's default value.
Would you know any other functions that might be called to mess with the value on start up? (Thank you for the help btw)
EDIT: For clarification "thisLineEdit" is a pointer I added to the class to point to the lineEdit's text. While it's not *really* necessary it's a convenience for now. Also, this lineEdit's regExp is defaulted at the moment until I can get this working, however, I will note that making the regExp something that a 0.00 would be illegal in didn't keep it from setting it to that IIRC. I'd have to check against.
Bookmarks