Advertisement
Pradlol

Untitled

Oct 24th, 2018
1,079
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. HPP:
  2. signals:
  3.     void dataChanged(QModelInde& Top, QModelIndex& Bottom, QVector<int> roles);
  4.  
  5. CPP:
  6.     void update(QVector<Object> objects)
  7.     {
  8.         // updating every Object
  9.        
  10.         emit dataChanged(index(0, 0), index(0, columnCount()), QVector<int>() << CoordinateRole;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement