搜索资源列表
realize_the_button_QWidget_by_own_style_in_Qt_4.ra
- 上网搜了很多关于qt 4重写按钮的资料,但是都只是介绍,没有源码。但是项目要求的按钮样式qt 4没有现成的,所以自己实现了一个简单的按钮。 模仿按钮的功能,通过重写 void paintEvent(QPaintEvent *event) void mousePressEvent(QMouseEvent *event) void mouseReleaseEvent(QMouseEvent *event) 三个函数达到绘制自定义按钮的目的。
自绘按扭
- GDI函数绘制的高效,非常漂亮的自绘按扭.-GDI drawing functions efficient, very beautiful painting from the buttons.
XPButton
- 该项目主要就是CXPButton的DrawItem函数的重载。在DrawItem中重新新绘制了 按钮的各中状态时的显示效果。具体的实现代码中有大体的说明。-The project is mainly a function of the overloaded CXPButton the DrawItem. The DrawItem re-draw the button in all new state of the display. Concrete implementation of the
draw1
- 编写应用程序,可以利用鼠标绘制矩形和圆形,具体功能要求如下: 1、 通过单击工具条按钮(或菜单项)选择绘制矩形或者圆形; 2、 绘制过程中要求实现橡皮线功能和重画(窗口改变的时候,已绘制的图形不能消失); 3、 程序中只能使用SetPixel绘图函数,不能使用其它绘图函数; 4、 [本功能选作]通过单击工具条按钮(或菜单项)显示对话框,让用户可以设置绘制图形的颜色(可以分别输入RGB三颜色分量)-Write applications that can use the mouse
AlphaButton
- 自绘实现半透明水晶按钮,给按钮加上BS_OWNERDRAW样式,重载DrawItem函数,在这里绘制按钮-And painted self realization translucent crystal buttons
Kaleidoscope
- CDrawKaleidoscope类中封装了绘制屏幕万花筒的功能,通过rand函数随机取出小圆半径的大小,使用COS和sin求出小园上的点,然后使用CDC类的Line To方法将各个点进行连接。-CDrawKaleidoscope class encapsulates kaleidoscope draw the screen functions are picked randomly by the rand function size small circle radius calculated