1

I want implement such GUI element:

Details ▶

if click on it:

Details ▼

Other gui elements avaible only if arrow down

Is any existing qml elements can I use to achieve this?

Community
  • 1
  • 1
user1244932
  • 7,352
  • 5
  • 46
  • 103
  • Have you looked at the [TreeView](https://doc.qt.io/qt-5/qml-qtquick-controls-treeview.html) component? – Zak Jun 22 '17 at 09:51
  • @Zak I need only one such element, so `TreeView` should be without frame, caption, and allow insert any view in place of open element (with buttons, checkboxes and other stuff), is it possible? – user1244932 Jun 22 '17 at 10:04
  • 1
    Don't think so. Anyway, TreeView has a different purpose. There is no such component, so I would suggest writing you own. It can be a combination of a Text label, Button to expand content and Loader to represent your content. – Zak Jun 22 '17 at 10:14
  • 1
    If you google for *QML Accordion* you might find a couple of implementations with different benefits and drawbacks. I think there are even a few on this site. – derM - not here for BOT dreams Jun 22 '17 at 10:36
  • @derM Thanks, `Accordion` is the word that I am looking for. – user1244932 Jun 22 '17 at 11:17

0 Answers0