开发者

Image drawing in Qt

I'm making a game in XNA, but since I have people with different operating systems, I'd like to make the mapeditor in Qt. I have C++ knowledge, I'm new to Qt though.

I'm looking for something to draw images, or rather parts of them, in an area of my application. Something like spriteBatch.Draw, maybe. Important would be that I can define a source rectangle of the picture and a destination rectangle.

Since I'm new to Qt, d开发者_StackOverflow社区etailed explanations or links to tutorials would be really appreciated.

Regards


Depending on how you want to do this, check the Qt Paint System documentation, or the Qt GraphicsView Framework.

The Qt Examples pages have lots of well documented samples.

Also check out the documentation of the QPainter and QImage classes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜