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 Listelement Opening Side List
Forum Updated to NodeBB v4.3 + New Features

Qml Listelement Opening Side List

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 189 Views
  • 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.
  • YunusY Offline
    YunusY Offline
    Yunus
    wrote on last edited by
    #1

    Hi all. I have created some buttons using listelement. And I need that when I clicked one of these buttons, I need it to open a list of new buttons beside the clicked button. (Btw all list elements are related to the functions. Thats how I m using them as button.)

    Here is the code how I created buttons(list elements)
    ListModel {
    id: smartModel
    ListElement { name: "Open (USB 2.0)"; type: "Connection" }
    ListElement { name: "Open (USB 3.0)"; type: "Connection"}
    ListElement { name: "SetUp"; type: "Connection"}
    ListElement { name: "Close"; type: "Connection" }
    ListElement { name: "LoadImage"; type: "Process" }
    ListElement { name: "Teach"; type: "Process" }
    ListElement { name: "Compare"; type: "Process" }
    ListElement { name: "Analyse"; type: "Process" }
    //ListElement { name: "Realtime"; type: "ImageProcess" }
    //ListElement { name: "ImageAnalysis"; type: "ImageProcess" }
    //ListElement { name: "Analysis"; type: "VideoProcess" }
    //ListElement { name: "ORB"; type: "VideoProcess" }
    //ListElement { name: "Color Selection"; type: "VideoProcess" }
    //ListElement { name: "Quit"; type: "VideoProcess" }
    //ListElement { name: "Crop Frame"; type: "VideoProcess" }
    //ListElement { name: "Cut Frame"; type: "VideoProcess" }
    //ListElement { name: "Analyse"; type: "VideoProcess" }
    //ListElement { name: "/Save"; type: "SetUp" }
    //ListElement { name: "Basler"; type: "Video" }
    ListElement { name: "Editor"; type: "Configuration" }
    ListElement { name: "Start"; type: "Calibration" }
    ListElement { name: "Capture"; type: "Calibration" }

                   //ListElement { name: "Close"; type: "Configuration" }
               }
    

    0_1549616615158_cropped.jpg

    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