Skip to content

[BUG]Instantiating Class FinWindow() Raises Warning #562

Description

@NewHad

Requirements (place an x in each of the [ ])

  • I realize finplot is not a web lib. (Hint: it's native!)
  • I've read the snippets and not found what I'm looking for.
  • I've searched for any related issues and avoided creating a duplicate issue.
  • I've updated finplot (pip install -U finplot).
  • I've supplied the required data to run my code below.

Code to reproduce

import finplot as fn

fn.FinWindow("test")

Describe the bug

Console shows warning:

qt.qpa.window: SetProcessDpiAwarenessContext() failed: Access is denied.      
Qt's default DPI awareness context is DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2. If you know what you are doing, you can overwrite this default using qt.conf (https://doc.qt.io/qt-6/highdpi.html#configuring-windows).

Expected behavior

As contrast, tests using lower apis underneath finplot are normal.
PyQt6:

from PyQt6 import QtWidgets

QtWidgets.QApplication.instance()
app = QtWidgets.QApplication(['test'])

or
pyqtgraph

import pyqtgraph as pg

pg.mkQApp()

Screenshots

warning:
Image

normal:

Image

Reproducible in:

OS: win10 19045.5965, display resolution 2560x1440, size 200%
finplot version:1.9.7
pyqtgraph version:0.13.7
pyqt version:6.9.1
project manager:poetry 2.1.3
python version:3.12.10
project drive letter: D:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions