[Interest] how to get 3 pixel focus ring?

David M. Cotter dave at kjams.com
Tue Jun 9 20:02:08 CEST 2020

ONLY around the lineEdit (search box, working fine on mac), the Tree view, or the Table view.

these are the only three places that are the targets of the keyboard

if you run my example project, you'll see things work fine for lineEdit and Tree view, but for some reason the table view gets only one pixel, even though it's set up EXACTLY the same way as the tree view.


> On Jun 9, 2020, at 8:26 AM, Adam Light <aclight at gmail.com> wrote:
> On Sun, Jun 7, 2020 at 2:21 PM David M. Cotter <dave at kjams.com <mailto: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
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest

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

More information about the Interest mailing list