Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2615

Font Inheritance not working as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.6.2
    • PySide
    • None
    • Windows 10
      Python 3.9.13
    • Windows

    Description

      Setting a widget's font via the QWidget.setFont() method in Python does not propagate the font to child widgets as it is described in the documentation here.

      In my case, I do not want to set the entire QApplication's font because my PySide application will be run inside of Maya, and changing the QApplication font will affect ALL fonts in Maya.

      I'm attaching a very simple Python project setup for reference that includes a `requirements.txt` file I used for creating a virtual environment, and a `main.py` file I used for creating a PySide2 standalone UI.

      Attachments

        1. FontInheritanceQt66C++.zip
          5 kB
        2. pyside2615_cpp.zip
          1 kB
        3. pyside2615.py
          2 kB
        4. pyside6_testing.zip
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            brycegbrazen Bryce Gattis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes