www.pudn.com > treeView.rar > widget.cpp, change:2011-03-13,size:367b


#include "widget.h" 
#include <QLabel> 
#include <QLineEdit> 
Widget::Widget(QWidget *parent) : 
    QWidget(parent) 
{ 
     QLabel *label = new QLabel(this); 
     label->setPixmap(QPixmap("1000.jpg")); 
     QLineEdit *edit = new QLineEdit(this); 
     label->setGeometry(0,0,50,50); 
     edit->setGeometry(50,0,50,50); 
     setFocusPolicy(Qt::StrongFocus); 
}