title: Set date at QDateEdit with C++
body: <p>I have this QDateEdit widget but it displays always a standard time like 01-01-2014 (in DD-MM-YYYY, but I can change this in the UI). But I want it to display the current time if the dialog (where this QDateEdit widget is) is opened. 
  I tested this just on a label (see the void form_dialog). But its printss out "sa nov 23 2013". But I want it like 23-11-2013. Also it gives me an error : </p>
  
  <pre><code>QDateTimeEdit::setDate' : cannot convert parameter 1 from 'QString' to 'const QDate &amp;'
  Reason: cannot convert from 'QString' to 'const QDate'
  No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
  </code></pre>
  
  <p>So</p>
  
  <pre><code>void form_dialog::setCurrentDate()
  {
      QDate date = QDate::currentDate();
      QString dateString = date.toString();
      ui-&gt;DateEdit-&gt;setDate(dateString);
  }
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>Maybe its usefull to have something visual, the widget that is displayed below should display the current date:<br>
  <img src="https://i.stack.imgur.com/X50xH.png" alt="enter image description here"></p>