开发者

Adding an image to a scrolling text ticker

I have created a ticker for my project which is working fine.

I want to add up a down arrow image within this ticker as per t开发者_如何学编程he stock market.

What should i have to do?

Can anyone help me?


Probably you have to create the desired image pixel for pixel and stick it just after the stock ticker text. If you are familiar with QT, there is side scroller code with even alpha-blending. It is based on scrolling a text pixel by pixel. Then it would be rather non-complex to add icons. Though the stock ticker text and the corresponding icons need to be contained as a block of pixels, so you have to repaint all those pixel-blocks next to each other on every paintevent or timer-tick.

Here is the source code for the side scroller: Qt - Scrolling the Text in QWidget

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜