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. Qt Qml Database
Forum Updated to NodeBB v4.3 + New Features

Qt Qml Database

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 904 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.
  • A Offline
    A Offline
    actionking
    wrote on last edited by
    #1

    hi ,friends
    i have created one database..i have stored peoples in table.... whenever i retrieved people names it should display in my qml through listview...suppose if there are similate name in the listview ...if i clicked first name in the listview, it should retrieve persons details in another listview...now i have listed the persons name in first listview..now my questions is in that listview, how to access each and every persons name and that accesing means(the particular clicked persons details should be displayed in second list eview) .......

    below i have provided my code ..please help me

    property variant columnum:[]
    ListView{
    x:650;y:180
    spacing: 30
    width: 600;height: 500
    clip:true
    boundsBehavior:Flickable.StopAtBounds

    model:["Title","Name","Patient-ID","Age","Contact No.","Address","Gender","DOB","Reg Date","Marital Status","Primary Doctor","Refering Doctor","History","Diagnosis","Comments"]
    delegate:Row{
    spacing: 30

    RectangleFunction{

    width: 200
    color: "#00000C"
    TextNames{
    anchors.right: parent.right
    text: ""+modelData

    }
    }
    RectangleFunction{

    TextinTable{
    id:getdata123

    text:columnum[index]

    }

    }

    }
    }

    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