登录
首页 » C++ Builder » 79867564

79867564

于 2013-11-22 发布 文件大小:249KB
0 295
下载积分: 1 下载次数: 4

代码说明:

  使用代码控制文字滚动,C++Builder精选编程学习源码,很好的参考资料。(Use code to control the rolling text, C++Builder select learning programming source code, a good reference.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ZNodes
    说明:  qt中提供了QGphicsView,QGraphicsScene,QGraphicsItem,QGraphicsPixmapItem是QGraphicsItem的子类 分辨创建它们的实例:view,scene,item,然后通过各自的方法scene->addItem(item);view->setScene(scene);就可以达到类似下图的效果,想要进一步定制,则要继承QGraphicsItem或QGraphicsPixmapItem,然后重写paint()、boundingRect()等方法,此外如果还想要获取鼠标事件,重写mousePressEvent等事件就好了,注意,一旦重写了mousePressEvent方法,就以为了qt不会再自动处理item的任何press事件了,可以在你重写的mousePressEvent方法中最后添加QGraphicsItem::mousePressEvent(event);解决这个问题,就是说你获取到了鼠标事件,但是依然让qt处理这个鼠标事件。(QGphics View, QGraphics Scene, QGraphics Item and QGraphics PixmapItem are provided in qt. They are subclasses of QGraphics Item. Resolve the instances of creating them: view, scene, item, and then use their respective methods scene - > addItem (item); view - > setScene (scene); you can achieve the effect similar to the figure below. If you want to further customize, you need to inherit QGraphics Item or QGraphics Pixmap Item, and then rewrite paint (), boundingRect () and other methods, and if you want to do so. If you want to get mouse events, rewrite events like mousePressEvent. Note that once you rewrite the mousePressEvent method, you think that QT will no longer automatically handle any press events of item. You can finally add QGraphics Item:: mousePressEvent (event) to your rewritten mousePressEvent method to solve this problem. That is, you get the mouse event, but still let QT handle the mouse event.)
    2020-06-16 20:20:01下载
    积分:1
  • butterfly
    用定时器控制蝴蝶在窗口中飞舞,BitBlt函数 CBitmap类(With a timer control butterfly flying in the window, BitBlt function CBitmap class)
    2011-06-09 16:15:16下载
    积分:1
  • 906084
    说明:  
    2018-05-22 15:16:11下载
    积分:1
  • PenDemo
    vc——使用不同的画笔绘制图形PenDemo的程序源码,很不错的demo(vc- use different brushes to draw graphics PenDemo the program source code, very good demo)
    2011-08-17 22:04:02下载
    积分:1
  • 04_ScrollBarDemo
    基于MFC的,用C++语言编写的一个程序界面 使得界面有滚动条功能(Scroll bar interface function MFC-based, a program written C++ language interface)
    2012-09-14 20:55:31下载
    积分:1
  • avi
    vc 一个可以在按钮上显示AVI动画的源代码(vc an AVI animations on the button display the source code)
    2011-07-03 08:46:47下载
    积分:1
  • GuessNum
    VC++ 界面优化的例程,界面优化皮肤,例程是一个猜数字的对话框(VC++ Interface optimized routines, interface optimization of the skin, routine is a dialog box猜数字)
    2009-01-07 13:31:22下载
    积分:1
  • 89600signal
    安捷伦89600系列软件的常用功能及界面设计,便于理解(Agilent 89600 Series software commonly used functions and interface design, easy to understand)
    2021-01-11 22:08:49下载
    积分:1
  • 5687557
    UILabel中美化字体的例子,精选ios编程学习源码,很好的参考资料。(Beautify the font UILabel example, selection of learning IOS programming source code, a good reference.)
    2013-12-13 18:34:09下载
    积分:1
  • news
    客户端与服务器通信,类似新闻界面,一个小型论坛,登录,发评论,浏览新闻的功能(Similar news interface, a small forum, login, send comments, browse news features)
    2016-03-28 17:21:56下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载