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

Change SpinBoxDelegate example to be consistent with QItemEditorFactory

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • None
    • 4.6.3, 4.7.2
    • Examples and Demos
    • None
    • 8347d4e0bd922e3088ef2d08a47e08bdeff1ab4e

    Description

      When QItemEditorFactory creates spinbox widgets for integer values and double values, it disables the frame for the widgets. However, spinboxdelegate creates a spinbox with a frame. It is not obvious that one needs to perform setFrame(false) on the delegate widget in order to reproduce the same appearance.

      A suggestion would be to add editor->setFrame(false) to line 66 of delegate.cpp in examples/itemviews/spinboxdelegate. This way the appearance is consistent with the default spinboxes created by QItemEditorFactory.

      The appearance without a frame is much nicer with the item views in particular.

      Attachments

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

        Activity

          People

            dm Geir Vattekar
            emmett Emmett McQuinn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes