draw dot graphs in Qt