QT中封装按钮

1.首先添加新文件.cpp,.h

.h中,明确继承类

 .cpp中

画家形式添加图片,

 动画效果,使用QPropertyAnimation类

原文地址:https://www.cnblogs.com/qq376142178/p/15366485.html