Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] Qt Fatal Segmentation Fault when accessing QList from qml
QtWS25 Last Chance

[SOLVED] Qt Fatal Segmentation Fault when accessing QList from qml

Scheduled Pinned Locked Moved General and Desktop
segmentation faqlistqmlqmap
3 Posts 2 Posters 1.6k 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.
  • M Offline
    M Offline
    Maxim DC
    wrote on last edited by Maxim DC
    #1
    This post is deleted!
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Something's not clear with your code, you return a QQmlListProperty<MyObject> while mMyObjectsList is a QQmlListProperty<MyObject*>.

      Also why are you calling (&mMyObjects)->values(); and not mMyObjects.values();?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Something's not clear with your code, you return a QQmlListProperty<MyObject> while mMyObjectsList is a QQmlListProperty<MyObject*>.

        Also why are you calling (&mMyObjects)->values(); and not mMyObjects.values();?

        M Offline
        M Offline
        Maxim DC
        wrote on last edited by Maxim DC
        #3
        This post is deleted!
        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