代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>TreeViewtest</class>
<widget class="QWidget" name="TreeViewtest">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<property name="styleSheet">
<string notr="true">QTreeView::item{
border:none;
padding:9px 0px;
}
QTreeView::item::selected {
background-color: rgb(170, 0, 0, 50);
color:#000;
border:none;
}
QTreeView::branch {
background-color: rgb(170, 0, 0,0);
}
QTreeView::branch::selected {
background-color: rgb(170, 0, 0, 50);
}</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QTreeWidget" name="treeWidget">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="autoExpandDelay">
<number>-1</number>
</property>
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
<column>
<property name="text">
<string>新建列</string>
</property>
</column>
<item>
<property name="text">
<string>新建项目</string>
</property>
<item>
<property name="text">
<string>新建子项目</string>
</property>
<item>
<property name="text">
<string>新建子项目</string>
</property>
</item>
</item>
</item>
<item>
<property name="text">
<string>新建项目</string>
</property>
<item>
<property name="text">
<string>新建子项目</string>
</property>
<item>
<property name="text">
<string>新建子项目</string>
</property>
</item>
</item>
</item>
<item>
<property name="text">
<string>新建项目</string>
</property>
<item>
<property name="text">
<string>新建子项目</string>
</property>
<item>
<property name="text">
<string>新建子项目</string>
</property>
</item>
</item>
</item>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。