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

No indication of Qt::PartiallyChecked in tristate CheckBox when using GTK+ style

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.3
    • None
    • CentOS 5.7

      When GUI Style is set to GTK+, a tristate QCheckBox in the Qt::PartiallyChecked state is indistinguishable from one in the Qt::Unchecked state - unless you set up for non-standard display e.g. by providing special ":indeterminate" style data.

      Gtk does support the concept of an "intermediate" state, however, and it should be possible to get a special indicator via its drawing routines - see http://developer.gnome.org/gtk3/stable/GtkToggleButton.html#gtk-toggle-button-set-inconsistent. Adding support for it is probably just a matter of inserting

      if (option->state & State_NoChange)
      state = GTK_STATE_INCONSISTENT;

      at the appropriate spot.

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

            Unassigned Unassigned
            toralf.lund@pgs.com Toralf Lund
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes