MeVisLab Scripting Reference
MLABWebGraphicsProxyWidget Class Reference

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

Sets 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.