How to set Width/Height using visible
-
Hi @RG90
width : id.visible ? 100 : 0;
Could you give a detailed description about the issue ? A code snippet maybe helpful.
Here is the code snippet
Component
{
id: component_footerHeaderFooter { property alias text: footer_button.text width: itemWidth height: itemHeight visible: view.currentItem === 0 ? true:false ButtonText { id: footer_button type: "regular" disabled: view.count == 0 onButtonAction: view.buttonAction(-2, action) anchors { fill: parent } } }
}
I want to make width/height to be dependent in visible.
-
Hi @RG90
width : id.visible ? 100 : 0;
Could you give a detailed description about the issue ? A code snippet maybe helpful.