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

Remove QToolButton and Improve QPushButton instead.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P5: Not important
    • None
    • 4.7.0
    • None

    Description

      Hi,

      This thread is meant to improve QPushButton, actually. But if it is indeed improved, QToolButton would be unnecessary. Please read and comment.

      I think having QToolButton is a waste of resources having already QPushButton. If we merge these two classes QPushButton would be beneficted by some of QToolButton functionality, for instance: The ability to set a default QAction.

      (Please look at this ticket: http://bugreports.qt.nokia.com/browse/QTBUG-7994 , specifically the comment I made there)

      We know that PushButton isn't only a QPushButton. It can also be a Toggle Button, a Menu Button, and a Split Button.
      A QToolButton is barely more than a QPushButton with QAction binding.

      But there are some things that could also improve QPushButton and its flexibility.
      For instance, the ability to chose the Icon alignment (left, right, top, bottom) and the Arrow alignment (left, right, top, bottom) in case of the Split Buttons.
      Instead of having just Qt::ToolButtonTextBesideIcon and Qt::ToolButtonTextUnderIcon. Developers could benefict from the posible variations.

      I can't think of a better example than ExtJS buttons, just check it out ^^
      http://dev.sencha.com/deploy/dev/examples/button/buttons.html

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ivan.todorovich Iván Todorovich
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes