title: How to add qdate to qtableview
body: <p>I want to add <code>Qdate</code> to my table say <code>QTableview</code>.The problem is if i convert it into string i can add and retrieve the data.But i want to store as date only in my model.</p>
  
  <pre><code>void MainWindow::setUpTabel()
  {
     QDateTime myDate;
     myDate.setDate(QDate::currentDate());
     //myModel 
     QStandardItemModel model = new QStandardItemModel(this);
     QStandardItem *item = new QStandardItem;
     item.setData(myDate,Qt::UserRole);
     //Myview is also created and set the model to it
     m_tableView-&gt;setModel(model);
   }
  </code></pre>
  
  <p>The problem is i'm not able to see the date in my table.</p>