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. Model with threads to retrieve data.

Model with threads to retrieve data.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qabstractmodelmodelc++qthread
2 Posts 2 Posters 968 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.
  • L Offline
    L Offline
    linuxkid
    wrote on 26 Feb 2016, 02:25 last edited by
    #1

    Got a question regarding threads after reading the introductory of qt.io
    I've got a class subclassing QThread that receives a QVector<QString> in the constructor, works with it in the run() method and emits a signal with the results
    on the other side, I've got a model, who is the owner of the QThread-derived class
    It receives the data, and then copies the data received into the original object that was passed as parameter for the thread's constructor
    So far, so good, BUT when I click on the QTableView that holds the model, it crashes
    If I don't, I get to see the information displaying pretty much properly
    May I show the source?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 26 Feb 2016, 05:21 last edited by
      #2

      Code would help.
      And do you see any error messages when your app crashes? Did you try to debug?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      26 Feb 2016, 02:25

      • Login

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