3
我是中国人,英语水平很差,所以我展示了代码来表达自己。如何通过paintEvent在儿童视图中绘制图像
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!!
}
THX,我已经做了你有什么done.But结果 – user1937666 2013-05-05 12:52:01
已经更新的答案,它的布局和SizePolicy让你感到困惑 – Shf 2013-05-05 12:53:09
thx,但我已经完成了你所做的。 – user1937666 2013-05-05 12:53:21