Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qml Listelement Opening Side List



  • 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


Log in to reply