question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System specfic QT styling can make FastFlix hard to use

See original GitHub issue

As reported by Nick Bailey:

~/Packages/FastFlix$ QT_STYLE_OVERRIDE=Adapta python -m
fastflix

it says

QApplication: invalid style override 'Adapta' passed, ignoring it.
        Available styles: Windows, Fusion

Using either of those doesn't change the appearance, which is unchanged from
leaving out the environment variable all together. I wouldn't mind, but it
makes the application hard to use (white text on white for pull-down menu
boxes...) I thought I should report this at least. Maybe you already know
about it.

The version I'm running was cloned from the git repo a day or two ago, and
reports itself as v4.1.2. Running on Debian Bullseye, in a virtual environment
as per your instructions.

d64b20bb-b169-4ba7-afd2-126a78a2bf38

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nickbaileycommented, Jan 30, 2021

I found what may be pertinent information here: https://stackoverflow.com/questions/52426437/how-to-instruct-pyside2-application-to-use-qt5ct-settings Contrary to what’s written there, PySide2 is in fact packaged for Debian Bullseye, but without a metapackage. I copied the current FastFlix installation in to a different directory, and removed venv/lib/PySide2. Then I installed the Debian version of PySide2 like this: apt install $(apt-cache pkgnames python3-pyside2.) pyside2-tools Now outside the venv, I see all available themes:

>>> from PySide2.QtWidgets import QStyleFactory
>>> print(QStyleFactory.keys())
['Adwaita-Dark', 'Adwaita', 'Breeze', 'Oxygen', 'QtCurve', 'Windows', 'Fusion']

but on within the venv, I see:

nick@polonius:~/Packages$ cp -a FastFlix/ FastFlix-no-PySide
nick@polonius:~/Packages$ cd FastFlix-no-PySide/
nick@polonius:~/Packages/FastFlix-no-PySide$ rm -rf venv/lib/python3.9/site-packages/PySide2

I then edited the activate script to change the venv directory and made a link from the old PySide2 to the system one /usr/lib/python3/dist-packages/PySide2 This causes the theme to be used, but the pull-down menus are stiill white-on white. Screenshot_20210130_153818 Changing the application style to Adwita in the control panel makes the menus readable (just) although something sitll isn’t quite right. Screenshot_20210130_154039

0reactions
cdgriffithcommented, Jan 25, 2022

Marking this as done as this is hopefully fixed and hasn’t been a follow up. If there is still any issues please report back and can reopen. Thanks again for bringing it to my attention!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Style Sheet Syntax | Qt Widgets 6.4.1 - Qt Documentation
The style sheet on the QPushButton forces the QPushButton (and any child widget) to have blue text, in spite of the more specific...
Read more >
Info in Bio and Pinned Tweet (@jpyper) / Twitter
sure does make things a lot easier. I am seriously considering switching from HandBrake to FastFlix for all video transcoding. aur/fastflix Linux, ...
Read more >
GUI programming using PyQt/PySide for beginners : r/Python
I'll be the first to admit that this kind of breakup of code/logic is really tough to do within Qt applications in a...
Read more >
Say No to Qt Style Sheets - KDAB
This makes it even harder to gradually move away from the stylesheet solution. One specific example for proof: a stylesheet that simply sets...
Read more >
Video Encoders / Converters Free Downloads - VideoHelp
FastFlix is a simple and friendly GUI for encoding videos. ... It's made to be as easy as possible to use so anyone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found