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. Template how to use with SplitView ?
Forum Updated to NodeBB v4.3 + New Features

Template how to use with SplitView ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 261 Views 1 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.
  • L Offline
    L Offline
    LZHD
    wrote on last edited by
    #1

    I try make this SplitView.qml

    import QtQuick
    import QtQuick.Templates as T
    
    T.SplitView {
    
    }
    
    

    when i use it, the splitview has one item is normal ,
    This is normal.

      SplitView {
            anchors.fill: parent
            Rectangle {
                color:"red"
            }
        }
    

    but two or more items the program will be crashed.

      SplitView {
            anchors.fill: parent
            Rectangle {
                color:"red"
            }
       Rectangle {
                color:"red"
            }
        }
    
    1 Reply Last reply
    0
    • L LZHD has marked this topic as solved on
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Since you marked the topic as solved, how did you fix the issue ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Since you marked the topic as solved, how did you fix the issue ?

        L Offline
        L Offline
        LZHD
        wrote on last edited by
        #3

        @SGaist Using import QtQuick.Controls.Material auto in qmldir, I found that there is no need to use template for SplitView.

        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