Jump to content

I never worked with QT but just by googling "QImage" I see the functions that class has : http://doc.qt.io/qt-4.8/qimage.html

 

I suppose the most brute force-ish (as in silly slow but works) method would be SetPixel .. just use a couple of FOR's to draw a line horizontally and one vertically by writing one pixel at a time.

 

Look into the QPainter class, that's probably more suitable for you : http://doc.qt.io/qt-5/qpainter.html

That has draw line, draw polyline, draw rect , fill area, etc

Link to comment
https://linustechtips.com/topic/775198-resolved/#findComment-9782077
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×