QML has vertical or horizontal separator control?
-
wrote on 1 Dec 2014, 07:33 last edited by
Hi,
Like MenuSeparator, QML has separator?
Any inputs.
Thanks.
-
wrote on 3 Dec 2014, 07:22 last edited by
It not appeared as 'Vertical Line" in Display Widget.
What is the similar code for "Vertical Line" in QML?
-
wrote on 3 Dec 2014, 07:26 last edited by
Maybe this helps:
http://developer.nokia.com/community/wiki/Drawing_lines_in_QML -
wrote on 3 Dec 2014, 07:49 last edited by
Thank you Jvd.
It draws the simple line Not Vertical Line from Qt Designer. It should be disabled/incactive state. I am missing that style/state. Any Idea?
-
wrote on 3 Dec 2014, 08:08 last edited by
From what I see the vertical line is a QFrame element with VLine settings.
http://qt-project.org/doc/qt-5/qframe.htmlA quick search did not provide me with a solution to either get QFrame in QML or draw a QWidget on QML. Maybe try looking for it yourself or use your drawing skills to redesign the line from my previous post so it looks like the Qt Designer :).
-
From what I see the vertical line is a QFrame element with VLine settings.
http://qt-project.org/doc/qt-5/qframe.htmlA quick search did not provide me with a solution to either get QFrame in QML or draw a QWidget on QML. Maybe try looking for it yourself or use your drawing skills to redesign the line from my previous post so it looks like the Qt Designer :).
wrote on 9 Feb 2025, 19:37 last edited by RokeJulianLockhart 2 Sept 2025, 19:39From what I see, the vertical line is a
QFrame
element withVLine
settings.Using
stackoverflow.com/review/suggested-edits/36711790
, that:separator_line = PyQt6.QtWidgets.QFrame() separator_line.setFrameShape(PyQt6.QtWidgets.QFrame.Shape.HLine) separator_line.setFrameShadow(PyQt6.QtWidgets.QFrame.Shadow.Sunken)
...seems to render in the correct orientation for me: