06-30-2024, 04:57 AM | #1 |
null operator (he/him)
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Qt Class Query
Which Qt Class are the 3 Mode Buttons in the F&R panel:
I want to put a border around the lists, like so: Hopefully by adding a line to the existing qt-style.qss file, a'la: Code:
:focus {border: 1px solid yellow;} QMenu {border: 1px solid yellow;} Q????????? {border: 1px solid yellow;} BR |
06-30-2024, 10:28 AM | #2 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Those are all QToolButtons.
https://doc.qt.io/qt-6/qtoolbutton.html See: https://doc.qt.io/qt-6/stylesheet-ex...ng-qtoolbutton The menu attached to it might be selected by a selector like: QToolBar > QMenu {} But I have not tested that. Last edited by KevinH; 06-30-2024 at 10:36 AM. |
06-30-2024, 10:35 AM | #3 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
If I understood your problem correctly:
Code:
QComboBox#cbSearchMode, QComboBox#cbLookWhere, QComboBox#cbSearchDirection {border: 1px solid yellow;} QComboBox#cbSearchMode QAbstractItemView, QComboBox#cbLookWhere QAbstractItemView, QComboBox#cbSearchDirection QAbstractItemView {border: 1px solid yellow;} |
06-30-2024, 10:40 AM | #4 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Are we not we talking about the Regex button? I think it is a pop-up menu on the QToolButton..
Yes the other buttons are standard QComboBoxes but trying to style those on Windows caused problems, I thought? Last edited by KevinH; 06-30-2024 at 10:44 AM. |
06-30-2024, 11:27 AM | #5 | |
null operator (he/him)
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Thanks both, this gives me what I want
Quote:
BR Last edited by BetterRed; 06-30-2024 at 11:31 AM. |
|
06-30-2024, 12:58 PM | #6 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Great. It works like that for me on macOS without changing anything but in light blue not yellow.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura H2O MicroSDHC card class 4 or class 10? | chipro12 | Kobo Reader | 5 | 07-04-2015 03:24 AM |
Quick query | hermano | Which one should I buy? | 16 | 01-15-2012 11:01 AM |
Hello and query | MPDuke | Introduce Yourself | 8 | 12-13-2011 11:27 AM |
PRS-650 SD Card Importance? SDHC, SDHC Class 4, Class 10 etc is it important | Renji | Sony Reader | 11 | 12-03-2011 01:30 PM |
Minor Query | kread100 | Calibre | 3 | 12-22-2010 03:42 PM |