Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Issue with creating QApplication in QT backend #15100

Copy link
Copy link
Closed
@macdems

Description

@macdems
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.