Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. integrating with QAbstractListModel
Qt 6.12 LTS is out! See what's new in the release blog

integrating with QAbstractListModel

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
signal & slotlistview
1 Posts 1 Posters 801 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
    • Unsolved