Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QWidget * QAbstractFormBuilder::load ( QIODevice device,
QWidget parent = 0 
) [virtual, inherited]

Loads an XML representation of a widget from the given device, and constructs a new widget with the specified parent.

See also:

### check the result

Definition at line 342 of file abstractformbuilder.cpp.

References QAbstractFormBuilder::create(), QDomNode::firstChild(), QDomDocument::setContent(), and QDomNode::toElement().

    QDomDocument doc;
    if (!doc.setContent(dev))
        return 0;

    QDomElement root = doc.firstChild().toElement();
    DomUI ui;
    ui.read(root); /// ### check the result

    return create(&ui, parentWidget);

Generated by  Doxygen 1.6.0   Back to index