I can't seem to find any mention in the documentation about spin boxes having a property of being greyed out.

I have tried:

Qt Code:
  1. this->ui->mySpinBox->setReadOnly(true);
To copy to clipboard, switch view to plain text mode 

&

Qt Code:
  1. this->ui->mySpinBox->setEnabled(false);
To copy to clipboard, switch view to plain text mode 

But this didn't work.