Planned maintenance has been done but it did not solve the problem. So work will continue on this and a new time for trying updates will be announced asap.
How can i create vertical tab view in QML ?
Qjay last edited by
hello i want to create vertical tabs view in which when user clicks it opens details regarding it and can go back too .
for ex :
click on tab3 -> opens detail and can go back to
how can i do it ?
Eeli K last edited by
@Qjay What do you mean by "go back"? In normal tab bar the buttons are visible all the time so you can always select another tab. If not, see the Quick Controls examples in Qt installation which have selectable and navigable vertical lists of views.
A simple implementation in Controls 2 could use vertical ListView with Buttons as delegates. If you need more inspiration for a more complete implementation go to qml/QtQuick/Controls.2/ in your Qt installation and open TabBar.qml and TabButton.qml and see how they are implemented. I have done something similar in past but I hesitate to give the code because it's unnecessarily complicated, has more features than you would need and needs cleanup, so that it would probably be more work for you to understand it than to do it from scratch. If you really want I can give it. Or you can begin by yourself and ask for advice for details.
or use a non-closable Drawer from QtQuickControls2 https://doc.qt.io/qt-5/qtquickcontrols2-sidepanel-example.html
Niconi last edited by
I have similar question too, Is that approach similar like using default tab system?
I see this in example project, I want to create side left panel tab
here the example, i need it vertical (top to bottom)
I need it like this :)
Tab 1 |
Tab 2 |
Tab 3 | Tab 3 is selected, i need something like this with vertical tab and vertical text
Tab 4 |
Tab 5 |
@Niconi for vertical Tabs you need a Drawer
Niconi last edited by
@ekkescorner thanks, but how to make it A non-interactive Drawer in landscape mode from begining? example file only make it non-interactive when the windows is in full screen (become landscape)
in my case my window already in landscape mode from begining but it still become closable drawer