Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104641

QDial: division by zero while changing minimal or maximum value

    XMLWordPrintable

Details

    • All
    • e4315204b (dev), ef2a6ba74 (6.6), 3aa2f60a6 (tqtc/lts-6.5), 466dbf95a (tqtc/lts-6.2)

    Description

      I catched it in "sliders" example. Trying to set "Minimum value" spinbox to value greater than in "Maxmum value" spinbox.

      On some machines it leads to crashes, on others - to different artifacts.

      /edit: Christian Ehrlicher

      Here the minimal reproducer

      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          QDial dial;
          dial.setRange(30, 30);
          dial.setWrapping(true);
          dial.setValue(45);
          dial.show();
      
          return a.exec();
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            eugesh Evgeny Shtanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: