一个widget一生大概都有五个时期: 1. 建立(creation):宣告一个物件(declaring an object) 2. 放置(placement):将它加入一个容器中(adding it to a container) 3. 信号连接(signal connection):接收信号以及进行动作(the action it will perform) 4. 显示(display):它是否是可见的(whether it is viewable or not) 5. 删除(destruction):关闭程式(closing of a program)