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. integrating with QAbstractListModel
QtWS25 Last Chance

integrating with QAbstractListModel

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
signal & slotlistview
1 Posts 1 Posters 336 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.
  • A Offline
    A Offline
    ahmad98
    wrote on 21 Mar 2020, 14:03 last edited by
    #1

    in my project i have a DBlayer class for connecting to database and reading/writing data,i have mylist class which inherits from QAbstractListModel ,i have signal and slot in DBlayer class that i want to connect them to mylist class, the problem is when i register mylist class to Qml like below :

    qmlRegisterType<mylist>("Mylist",1,0,"mylist");
    

    i have no instance of mylist class to connect it's signal and slot to DBlayer class.
    what is the best way to do this? is there another way to show my data in Qml ListView?

    1 Reply Last reply
    0

    1/1

    21 Mar 2020, 14:03

    • Login

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