位图和矢量图: Bitmap: Usually a larger file size Cannot be enlarged into a higher resolution as the image quality will be affected Used to display complex images with many colors, such as photographs Vector: Very small in file size Graphics can be resized
该程序使用应用程序单窗口,主窗口继承于QMainWindow:主窗口有5个QToolButton部件(窗口底部的四个以及窗口中央的一个),单击窗口底部的QToolButton部件可以使窗口中央的那个QToolButton有动画效果:具体效果请自己尝试. 1.生成部件以及定位部件 在主窗口的构造函数中生成部件对象,然后在窗口大小改变事件中定位部件位置,如下代码所示: //生成ToolButton m_pBtn1 = new QToolButton(this); //窗口大小改变事件 vo