Comments (3)
Actually, this is a problem with the QtPy already mentioned some time ago in this.
Since I'm building the assets in the Qt6, QtPy will try in this order PyQt5/PySide2/PyQt6/Pyside6. So, if it start with PySide6, QtPy won't test the other possibilities.
For now I'll rebuild the assets in Qt5, them with some time I can help with the PR for the QtPy.
from qdarkstylesheet.
Hey guys, thank you for reporting, I'll take a look this weekend. I think I generated the assets with pyside6, so maybe thats the problem. Thanks!
from qdarkstylesheet.
Hey @skp17, thanks for reporting. We've also noticed a similar problem in Spyder.
@dpizetta, a simple way to reproduce this is by running the following commands in a virtualenv:
pip install pyqt==5.12 ipython
ipython
and then
In [1]: from qdarkstyle import load_stylesheet
In [2]: css = load_stylesheet()
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
Cell In[2], line 1
----> 1 css = load_stylesheet()
File ~/.virtualenvs/test-qdark/lib/python3.8/site-packages/qdarkstyle/__init__.py:341, in load_stylesheet(*args, **kwargs)
339 # No arguments
340 if not kwargs and not args:
--> 341 stylesheet = _load_stylesheet(qt_api='pyqt5')
343 # Old API arguments
344 elif 'pyside' in kwargs or isinstance(arg, bool):
File ~/.virtualenvs/test-qdark/lib/python3.8/site-packages/qdarkstyle/__init__.py:273, in _load_stylesheet(qt_api, palette)
271 stylesheet = ""
272 # Todo: check this raise type and add to docs
--> 273 raise FileNotFoundError("Unable to find QSS file '{}' "
274 "in resources.".format(qss_rc_path))
276 _logger.debug("Checking patches for being applied.")
278 # Todo: check execution order for these functions
279 # 1. Apply OS specific patches
FileNotFoundError: Unable to find QSS file ':qdarkstyle/dark/darkstyle.qss' in resources.
This error doesn't happen in PyQt 5.15, but it does in version 5.12 and, according to the info reported by @skp17, in 5.11 as well.
So, I think the assets need to be regenerated so that they work in older PyQt versions.
Could you take a look at that? Thanks!
from qdarkstylesheet.
Related Issues (20)
- Creating a custom palette HOT 7
- djef HOT 3
- Qwt legend can't fully displayed when dock to right
- QColorDialog problem HOT 1
- qdarkstyle work conflict with mouseMoveEvent HOT 1
- QDateEdit Popup too small, wrong colors for weekends
- Incorrect modification to warnings HOT 1
- QMessageBox buttons too narrow
- Widgets inside a QToolBox are not displayed properly when placed in a QToolBox
- Improve C++ use case explanation in documentation HOT 2
- Custom style of specific widget HOT 4
- Cannot Get QTTabbar Tab Font to Change Color
- QMenu section text not visible
- Release 3.2 HOT 4
- Regression in 3.2: sass.CompileError: Error: Undefined variable: "$COLOR-DISABLED". HOT 9
- No checked hint of checkable actions inside menu entries HOT 7
- "SetuptoolsDeprecationWarning: Invalid dash-separated options" during python package build
- BUG: Cannot use 3.2.2 on PySide2 (probably anything other than PyQt5) HOT 3
- Qt5 C++:QCheckBox does not display checkbox
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 qdarkstylesheet.