Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML has vertical or horizontal separator control?
Forum Updated to NodeBB v4.3 + New Features

QML has vertical or horizontal separator control?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 5.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    av2306
    wrote on last edited by
    #1

    Hi,

    Like MenuSeparator, QML has separator?

    Any inputs.

    Thanks.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      av2306
      wrote on last edited by
      #2

      It not appeared as 'Vertical Line" in Display Widget.

      What is the similar code for "Vertical Line" in QML?

      1 Reply Last reply
      1
      • J Offline
        J Offline
        JvdGlind
        wrote on last edited by
        #3

        Maybe this helps:
        http://developer.nokia.com/community/wiki/Drawing_lines_in_QML

        Jeffrey VAN DE GLIND
        Principle Consultant @ Nalys
        www.nalys-group.com

        1 Reply Last reply
        0
        • A Offline
          A Offline
          av2306
          wrote on last edited by
          #4

          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?

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JvdGlind
            wrote on last edited by
            #5

            From what I see the vertical line is a QFrame element with VLine settings.
            http://qt-project.org/doc/qt-5/qframe.html

            A 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 :).

            Jeffrey VAN DE GLIND
            Principle Consultant @ Nalys
            www.nalys-group.com

            RokeJulianLockhartR 1 Reply Last reply
            0
            • J JvdGlind

              From what I see the vertical line is a QFrame element with VLine settings.
              http://qt-project.org/doc/qt-5/qframe.html

              A 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 :).

              RokeJulianLockhartR Offline
              RokeJulianLockhartR Offline
              RokeJulianLockhart
              wrote on last edited by RokeJulianLockhart
              #6

              From what I see, the vertical line is a QFrame element with VLine 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:

              1. Before

                0dd1b2f4-2c92-4fd0-8f95-d070c0a84640-Screenshot_20250209_190842.png

              2. Afterward

                ...albeit invisibly (it should be between "Modify" and "Overflow"):

                62ba634c-b9d0-4bb7-9169-c8332fa1aa65-Screenshot_20250209_193706.png

              When using a forum, remember to tag the person you are responding to, in case they are not subscribed to the thread.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved