Are you running the program in Visual Studio? It should appear in the debug output window.
Override QWidget::paintEvent() for the widget you want to paint on and use QPainter to draw the line. For example, if you want to paint on the central widget in a main window, you must reimplement the paintEvent() for the central widget, not for the main window.
See this post.






Reply With Quote
Bookmarks