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

QFont copy constructor that takes a QPaintDevice not copying all properties

    XMLWordPrintable

Details

    Description

      In order to get the most accurate information about a font, it should be "bound" to a widget such that its metrics or info can be queried from these (eg: QWidget::fontInfo()). This is normally achieved by calling one of the setFont() functions on the widget or painter. However, it may not always be desirable to set the font on the painter or the widget and in this case, it should be sufficient to use the QFont copy constructor that takes a QPaintDevice and pass the widget itself. However, this yields different results in some cases.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            jabarron Jason Barron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes