Control SplitView borders in QML -
i have splitview
, inside split view have 2 elements (rectangle
(users) , 1 item
contains columnlayout
(processes) ).
user can choose if see users or not. if doesn't want see users, then, set rectangle width 0 , able see processes, problem in window, there 2 borders. 1 window, 1 splitview
.
any idea how can rid of these double border?
try set visible attribute of rectangle false (instead of changing width 0)
in example can change visible left 'border' of splitview (the border not border, it's splitview slider between first , second element):
applicationwindow { title: qstr("hello world") width: 640 height: 480 visible: true splitview { anchors.fill: parent rectangle { id: rec width: 0 height: parent.height visible: false } rectangle { width: 200 color:"red" height: parent.height } button { text: "change left border of splitview" onclicked: { rec.visible = !rec.visible; } } } }
Comments
Post a Comment