Comments (3)
After looking into it a bit more, it seems that this problem has its origin in a change in PySide 6.5 where correct multiple inheritance handling for _init_ methods was introduced. Since you changed the order of base classes of WindowsFramelessMainWindow
and WindowsFramelessDialog
the code now fails.
See: https://forum.qt.io/topic/144262/typeerror-with-pyside-6-5-0-for-multiple-inheritance-of-mainwindow/28
I don't know what the correct fix is but maybe the base class order has to be reverted?
from pyqt-frameless-window.
亲 class麻烦初始化一下
class Foo:
def __init__(self,*args,**kwargs):
pass
不想初始化的化改下继承顺序,这个对不同版本python表现不一样,不推荐
class MainWindow(Foo,FramelessMainWindow):
from pyqt-frameless-window.
Okay, so just switching the order of base classes fixes the problem in my case.
Generally speaking it seems that the QT based classes need to be the last base class.
So in case of the example this would work:
class Foo:
pass
class MainWindow(Foo, FramelessMainWindow):
def __init__(self):
super().__init__()
from pyqt-frameless-window.
Related Issues (20)
- 窗口移动事件在wayland下无法正常工作 HOT 3
- [BUG] 系统设置中开启“在标题栏和窗口边框上显示强调色”后,会导致窗口顶部出现异色横条 HOT 2
- Does this library provide a dark mode feature for a frameless window? HOT 1
- window draged bug HOT 1
- 使用MobaXterm打开窗口,窗口无法移动或者最大化最小化 HOT 2
- 修改背景为暗色后,窗口从隐藏状态切换为显示状态会出现白色闪屏现象 HOT 1
- window maximize is not correct
- [BUG] PyQt5-Fameless-Window 0.3.4 及以后的版本,FluentWindow 无法通过拖拽右侧边缘改变窗口大小 HOT 1
- Win10 亚克力窗口会卡,现在有部分方法可以解决,请验证一下 HOT 1
- [Bug]: Window cannot maximize as expected when system taskbar is not on the bottom. HOT 3
- 简中自述文件(已提交拉取请求无回应,先将中文文档贴在议题里) HOT 1
- 窗口关闭后显示在通知栏图标,然后再恢复窗口时,窗口边框消失,阴影消失,无法通过边框缩放窗口。 HOT 5
- 在窗口中嵌入QWebEngineView之后,窗口边框消失,阴影消失。 HOT 1
- 动态加载ui文件怎么使用无边框窗口 HOT 5
- 反馈一个小bug:始终在默认路径下建立存储文件。 HOT 3
- Optimizing UI Design: Harnessing Frameless Windows in PySide 6 with Qt Designer for Compiled UI HOT 5
- PySide2版本最右侧依然存在死区 HOT 5
- 希望窗口缩放区域判定和系统保持一致 HOT 2
- [Bug]: 在py312下,识别系统版本错误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyqt-frameless-window.