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

font property does not propagate correctly from QGraphicsView to QGraphicsRectItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.13.2, 5.15.2, 6.1.2, 6.3.1
    • Widgets: GraphicsView
    • None
    • Linux/X11

    Description

      When calling setFont on a QGraphicsView the fontMetrics does not get populated correctly. While rendering correctly, fontMetrics contains contains the default font. CMakeLists.txt main.cpp

      Edit: if you call setFont on the QGraphicsScene it works as expected

      Attachments

        1. CMakeLists.txt
          0.7 kB
          Lieven Hey
        2. main.cpp
          1 kB
          Lieven Hey

        Activity

          People

            bibr Andreas Aardal Hanssen
            lieven.hey Lieven Hey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: