Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why qt_blurImage dosen't exist in PyQt5.QWidgets #74

Open
haiw2sm opened this issue Nov 30, 2022 · 0 comments
Open

Why qt_blurImage dosen't exist in PyQt5.QWidgets #74

haiw2sm opened this issue Nov 30, 2022 · 0 comments

Comments

@haiw2sm
Copy link

haiw2sm commented Nov 30, 2022

The following code is from QT source code, but i count't use the function qt_blurImage from the PyQt5.QWidgets.

QT_BEGIN_NAMESPACE
  extern Q_WIDGETS_EXPORT void qt_blurImage(QPainter *p, &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed = 0);
QT_END_NAMESPACE

I wanna ask how to use that? I had tried load the function from the QWidgets dll, but it occurred some problems by using the ctype.
The python code:

import ctypes
dll = ctypes.CDLL('QWidgets.dll');

The Error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\xxx\lib\ctypes\__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 不是有效的 Win32 应用程序。

Are there some any other ways? Please help me solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant