Skip to content

Issue with creating QApplication in QT backend #15100

@macdems

Description

@macdems

In the file backend_qt5.py in line 126 a new QApplication object is created. However, the passed argument is a list with a binary string. This causes PySide2 to print ugly

QSettings::value: Empty key passed
QSettings::value: Empty key passed

Correctly, the string should be passed, which will make the warning go away.

To resolve this issue, please replace

qApp = QtWidgets.QApplication([b"matplotlib"])

to this

qApp = QtWidgets.QApplication(["matplotlib"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy