[Interest] how to get 3 pixel focus ring?

Adam Light aclight at gmail.com
Tue Jun 9 17:26:09 CEST 2020


On Sun, Jun 7, 2020 at 2:21 PM David M. Cotter <dave at kjams.com> wrote:

> i have an example project (see below), that tries 6 different
> implementations, attempts to make the focus ring 3 pix wide. None of them
> work on windows, and only one of them PARTIALLY works on mac. What i want
> is the style you get around a text edit on mac, but i want that style on
> ALL widgets, and i want it on windows too.
>

Let's take a step back. What exactly are you trying to accomplish?

Do you want the focus ring to be around the QTreeWidget, QTableWidget, and
QLineEdit widgets (lineEdit, tableView, and treeView in your .ui file)? Do
you want a focus ring around the selected item in the tree and table views
(those are not widgets, but I suspect this is actually what you want). Or
do you want the focus ring around the widgets used for editing values in
your views, such as the line edit you get when you double click on one of
the cells in the table widget? These are all very different problems so
it's important to define the problem you are trying to solve first.

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200609/b3bdaa82/attachment.html>


More information about the Interest mailing list