[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    QTreeView custom first branch icon?
From:       Matic Kukovec <kukovecmatic () hotmail ! com>
Date:       2021-08-30 22:42:32
Message-ID: VE1PR09MB32805A92A05814B669062B65D7CB9 () VE1PR09MB3280 ! eurprd09 ! prod ! outlook ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi guys,

Does anyone know how to change only the first branch icon of a QTreeView?
I want to be able to change just the first branch icons to not have a line =
to the top border of the widget.
This is how it currently looks:
[cid:b23c2880-84c5-4485-baf6-c85e59fee50c]
But I want to remove the line that goes to the top border of the widget, li=
ke so:
[cid:0cfbdba6-d1f1-4a6b-8091-b5290217330d]

I can't find anything on how to address the first branch in the style sheet=
. Tried inserting the ":first" selector in multiple positions in the styles=
heet, but I had no success.

Any ideas/hints would be greatly appreciated.

Matic

[Attachment #5 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Hi guys,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Does anyone know how to change <b>only the first branch icon</b> of a \
QTreeView?</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);"> I want to be able to change just the first branch icons \
to not have a line to the top border of the widget.</div> <div style="font-family: \
Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> This is how \
it currently looks:<br> </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <img style="max-width:100%" size="1563" contenttype="image/png" \
data-outlook-trace="F:1|T:1" src="cid:b23c2880-84c5-4485-baf6-c85e59fee50c"><br> \
</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> But I want to remove the line that goes to the top border of \
the widget, like so:</div> <div style="font-family: Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);"> <img style="width: 39px; height: 187px; \
max-width: 100%;" size="1552" contenttype="image/png" width="39" height="187" \
data-outlook-trace="F:1|T:1" src="cid:0cfbdba6-d1f1-4a6b-8091-b5290217330d"></div> \
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> I can't find anything on how to address the first branch in the style \
sheet. Tried inserting the &quot;:first&quot; selector in multiple positions in the \
stylesheet, but I had no success.</div> <div style="font-family: Calibri, Helvetica, \
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Any ideas/hints would be greatly appreciated.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Matic<br>
</div>
</body>
</html>


["image.png" (image/png)]
["image.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic