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

Font set on QTableWidget may not propagate to horizontal header view

    XMLWordPrintable

Details

    Description

      Consider the following example:

      #include <QtGui>

      int main(int argc, char *argv[]) {
      QApplication app(argc, argv);

      QDialog *dlg = new QDialog();
      dlg->setGeometry(20, 20, 320, 220);

      QTableWidget *tw = new QTableWidget(5, 2, dlg);
      tw->setGeometry(10, 10, 300, 200);

      QFont font("Courier", 20);
      tw->setFont(font);

      dlg->show();

      return app.exec();
      }

      The expected result is that the courier font is set on the entire QTableWidget, including both header views.

      The actual result is that the font is set only on the vertical header view. The horizontal header view's font is not affected.

      Attachments

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

        Activity

          People

            hanssen Andreas Aardal Hanssen (closed Nokia identity) (Inactive)
            sthomass Stian Sandvik Thomassen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes