我是中国人,英语很差,所以我展示代码来表达自己。
class Widget:public QWidget
{
private:
//As a child object of Widget object
QLabel* label;
};
// Override the paintEvent
void Widget::paintEvent(QPaintEvent* event)
{
//How to draw a picture in the QLabel not in the full Widget's view,thx!!
}