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

How to set this for QT6 applications #197

Closed
lamyergeier opened this issue Dec 22, 2023 · 3 comments
Closed

How to set this for QT6 applications #197

lamyergeier opened this issue Dec 22, 2023 · 3 comments

Comments

@lamyergeier
Copy link

lamyergeier commented Dec 22, 2023

How to set this for QT6 applications like Calibre 7.2?

qt-config is only for version QT4.

I installed using: sudo dnf install -y adwaita-qt5 adwaita-qt6 (Fedora 39, Gnome, Wayland)

@grulja
Copy link
Collaborator

grulja commented Dec 27, 2023

You can use QT_STYLE_OVERRIDE env variable or run app_name -style adwaita-qt.

@grulja grulja closed this as completed Dec 27, 2023
@lamyergeier
Copy link
Author

lamyergeier commented Dec 27, 2023

$ calibre -style adwaita-qt
Usage: calibre [options] [path_to_ebook or calibre url ...]

Launch the main calibre Graphical User Interface and optionally add the e-book at
path_to_ebook to the database. You can also specify calibre URLs to perform various
different actions, than just adding books. For example:

calibre://view-book/test_library/1842/epub

Will open the book with id 1842 in the EPUB format from the library
"test_library" in the calibre E-book viewer. Library names are the folder names of the
libraries with spaces replaced by underscores. A full description of the
various URL based actions is in the User Manual.


Whenever you pass arguments to calibre that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"

calibre: error: no such option: -t
$ calibre -style "adwaita-qt"
Usage: calibre [options] [path_to_ebook or calibre url ...]

Launch the main calibre Graphical User Interface and optionally add the e-book at
path_to_ebook to the database. You can also specify calibre URLs to perform various
different actions, than just adding books. For example:

calibre://view-book/test_library/1842/epub

Will open the book with id 1842 in the EPUB format from the library
"test_library" in the calibre E-book viewer. Library names are the folder names of the
libraries with spaces replaced by underscores. A full description of the
various URL based actions is in the User Manual.


Whenever you pass arguments to calibre that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"

calibre: error: no such option: -t
$ calibre -style -- "adwaita-qt"
Usage: calibre [options] [path_to_ebook or calibre url ...]

Launch the main calibre Graphical User Interface and optionally add the e-book at
path_to_ebook to the database. You can also specify calibre URLs to perform various
different actions, than just adding books. For example:

calibre://view-book/test_library/1842/epub

Will open the book with id 1842 in the EPUB format from the library
"test_library" in the calibre E-book viewer. Library names are the folder names of the
libraries with spaces replaced by underscores. A full description of the
various URL based actions is in the User Manual.


Whenever you pass arguments to calibre that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"

calibre: error: no such option: -t
$ QT_STYLE_OVERRIDE=adwaita-qt  calibre
QApplication: invalid style override 'adwaita-qt' passed, ignoring it.
        Available styles: Windows, Fusion
qt.svg: Cannot open file '/home/lamy/.config/calibre/resources/images/WordDumb/starfish.svg', because: No such file or directory
qt.svg: Cannot open file '/home/lamy/.config/calibre/resources/images/WordDumb/starfish.svg', because: No such file or directory
$ QT_STYLE_OVERRIDE=adwaita  calibre
QApplication: invalid style override 'adwaita' passed, ignoring it.
        Available styles: Windows, Fusion
qt.svg: Cannot open file '/home/lamy/.config/calibre/resources/images/WordDumb/starfish.svg', because: No such file or directory
qt.svg: Cannot open file '/home/lamy/.config/calibre/resources/images/WordDumb/starfish.svg', because: No such file or directory

@grulja
Copy link
Collaborator

grulja commented Jan 2, 2024

Sorry, it should have been adwaita and not adwaita-qt, but still it looks you don't have it installed properly (or at all?) since it says the only ones available are Windows and Fusion.

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

2 participants