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

integrating with QAbstractListModel

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
signal & slotlistview
1 Posts 1 Posters 410 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
    ahmad98
    wrote on 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

    • Login

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