Draw smooth curve with Qt