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

Implement stylesheet setting for text alignment on a QToolButton

XMLWordPrintable

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

      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();
      }
      

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

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

              Created:
              Updated:

                There are no open Gerrit changes