MeVisLab Scripting Reference
MLABWebGraphicsProxyWidget Class Reference

#include <mlabWebGraphicsProxyWidget.h>

Inherits QGraphicsProxyWidget.

Public Slots

Direct MLABWebGraphicsProxyWidget access


QUrl url () const
 
void setUrl (const QUrl &url)
 
void setHtml (const QString &htmlString, const QUrl &baseUrl=QUrl())
 
void setGeometry (const QRect &r)
 

Detailed Description

MLABWebGraphicsProxyWidget extends QGraphicsProxyWidget to allow setter methods for URL/HTML.

Member Function Documentation

◆ setGeometry

void MLABWebGraphicsProxyWidget::setGeometry ( const QRect & r)
slot

Convenience method to set the geometry by QRect.

◆ setHtml

void MLABWebGraphicsProxyWidget::setHtml ( const QString & htmlString,
const QUrl & baseUrl = QUrl() )
slot

Set the html data from the given htmlString.

If no baseUrl is given, the base url is the of the MDL code that created this WebView.

◆ setUrl

void MLABWebGraphicsProxyWidget::setUrl ( const QUrl & url)
slot

Set the url to load.

◆ url

QUrl MLABWebGraphicsProxyWidget::url ( ) const
slot

Returns the url, that was set before.