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

Implement stylesheet setting for text alignment on a QToolButton

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.6.3
    • Widgets: Style Sheets
    • None

    Description

      The following code works only for QPushButton, not QToolButton:


      #include <QtGui> 
      
      int main(int argc, char **argv) 
      { 
          QApplication a(argc, argv);
      //    QPushButton btn;
          QToolButton btn;
          btn.setText("Button text");
          btn.setStyleSheet(QString::fromUtf8("text-align: left"));
          btn.show();
          return a.exec();
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mpejcoch Martin Pejcoch (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes