I don't use model, I'm directly creating new items, I do nothing in to my class that inherits QFrame, thats are future plans but I will show.
Qt Code:
  1. class ContactWidget : public QFrame
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. ContactWidget(QWidget *parent = 0) : QFrame(parent) {};
  7. ~ContactWidget() {};
  8. };
To copy to clipboard, switch view to plain text mode