Hello everybody!

I am trying to use a set a QLocale in a QDoubleSpinBox, but its not working. The data input does not change at all.

What am I missing?

Thanks a lot.

Qt Code:
  1. QDoubleSpinBox *doubleSpinBoxEditor = new QDoubleSpinBox(parent);
  2. doubleSpinBoxEditor->setDecimals(4);
  3. doubleSpinBoxEditor->setAlignment(Qt::AlignRight);
  4. doubleSpinBoxEditor->setPrefix("$ ");
  5.  
  6. doubleSpinBoxEditor->setLocale(QLocale(QLocale::Portuguese, QLocale::Brazil));
  7. return doubleSpinBoxEditor;
To copy to clipboard, switch view to plain text mode