Branch in QTreeView
-
Hello! I have problem with QTreeView.
How can I reduce default range between the branch and the first column?
I tried to do this through the stylesheet - it was unsuccessful.@Onyborak said in Branch in QTreeView:
I tried to do this through the stylesheet - it was unsuccessful.
avoid posting too much information!
See this.
-
@raven-worx said in Branch in QTreeView:
avoid posting too much information!
See this.Before asking a question, I studied this example. There is nothing about this range or size of the branch.
I tried this:QTreeView::item { width: 0px; margin: 0; }QTreeView::branch { width: 0px; max-width: 0px; margin: 0; } -
@raven-worx said in Branch in QTreeView:
avoid posting too much information!
See this.Before asking a question, I studied this example. There is nothing about this range or size of the branch.
I tried this:QTreeView::item { width: 0px; margin: 0; }QTreeView::branch { width: 0px; max-width: 0px; margin: 0; }@Onyborak
did you see QTreeView::setIntendation() and/or QTreeView::setRootIsDecorated() -
@raven-worx
yes.
QTreeView::setIntendation() - If I set the value of the indentation field to 0, then the tree will not be visible and the child items will be displayed without a shift. But the first column will still be drawn with an indent from the left frame of the widget.QTreeView::setRootIsDecorated() - hide the arrows, but the first column will still be drawn with an indent from the left frame of the widget.
-
@raven-worx
yes.
QTreeView::setIntendation() - If I set the value of the indentation field to 0, then the tree will not be visible and the child items will be displayed without a shift. But the first column will still be drawn with an indent from the left frame of the widget.QTreeView::setRootIsDecorated() - hide the arrows, but the first column will still be drawn with an indent from the left frame of the widget.
@Onyborak
i think i still dont understand what you want to achieve.
Do you want to display a tree-model as a table/list? -
@Onyborak
i think i still dont understand what you want to achieve.
Do you want to display a tree-model as a table/list?