Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtWebKit.QWebView Class Reference

The QWebView class provides a widget that is used to view and edit web documents. More...

Inheritance diagram for QtWebKit.QWebView:
Collaboration diagram for QtWebKit.QWebView:

Public Member Functions

 QWebView (QWidget parent=null)
 
 
override void CreateProxy ()
 
new void Back ()
 
 
override bool OnEvent (QEvent arg1)
 
 
new bool FindText (string subString, QWebPage.FindFlag options=0)
 
 
new void Forward ()
 
 
new QWebHistory History ()
 
 
override object InputMethodQuery (Qt.InputMethodQuery property)
 
 
new void Load (QUrl url)
 
 
new void Load (QNetworkRequest request, QNetworkAccessManager.Operation operation=QNetworkAccessManager.Operation.GetOperation)
 
 
new void Load (QNetworkRequest request, QNetworkAccessManager.Operation operation, QByteArray body)
 
 
new QAction PageAction (QWebPage.WebAction action)
 
 
new void Print (QPrinter arg1)
 
 
new void Reload ()
 
 
new QPainter.RenderHint renderHints ()
 
new void SetContent (QByteArray data, string mimeType="")
 
 
new void SetContent (QByteArray data, string mimeType, QUrl baseUrl)
 
 
new void SetHtml (string html)
 
 
new void SetHtml (string html, QUrl baseUrl)
 
 
new void SetRenderHint (QPainter.RenderHint hint, bool enabled=true)
 
 
new void SetRenderHints (QPainter.RenderHint hints)
 
new void SetTextSizeMultiplier (double factor)
 
new void SetZoomFactor (double factor)
 
new QWebSettings Settings ()
 
 
override QSize SizeHint ()
 
 
new void Stop ()
 
 
new double textSizeMultiplier ()
 
new void TriggerPageAction (QWebPage.WebAction action, bool @checked=false)
 
 
new double zoomFactor ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QWidget
 QWidget (QWidget parent=null, Qt.WindowType f=0)
 
 
new
System.Collections.Generic.List
< QAction
Actions ()
 
 
new void ActivateWindow ()
 
 
new void AddAction (QAction action)
 
 
new void AddActions (System.Collections.Generic.List< QAction > actions)
 
 
new void AdjustSize ()
 
 
new QWidget ChildAt (QPoint p)
 
 
new QWidget ChildAt (int x, int y)
 
 
new void ClearFocus ()
 
 
new void ClearMask ()
 
 
new bool Close ()
 
 
new QRect ContentsRect ()
 
 
new void CreateWinId ()
 
virtual int DevType ()
 
new NativeULong EffectiveWinId ()
 
 
new void EnsurePolished ()
 
 
new QWidget FocusWidget ()
 
 
new QFont font ()
 
new QFontInfo FontInfo ()
 
 
new QFontMetrics FontMetrics ()
 
 
new QRect geometry ()
 
new void GetContentsMargins (ref int left, ref int top, ref int right, ref int bottom)
 
 
virtual System.IntPtr GetDC ()
 
 
new void GrabGesture (Qt.GestureType type, Qt.GestureFlag flags=0)
 
 
new void GrabKeyboard ()
 
 
new void GrabMouse ()
 
 
new void GrabMouse (QCursor arg1)
 
 
new int GrabShortcut (QKeySequence key, Qt.ShortcutContext context=Qt.ShortcutContext.WindowShortcut)
 
 
new QGraphicsProxyWidget GraphicsProxyWidget ()
 
 
virtual int HeightForWidth (int arg1)
 
 
new void Hide ()
 
 
new Qt.InputMethodHint inputMethodHints ()
 
new void InsertAction (QAction before, QAction action)
 
 
new void InsertActions (QAction before, System.Collections.Generic.List< QAction > actions)
 
 
new NativeULong InternalWinId ()
 
new bool IsAncestorOf (QWidget child)
 
 
new bool IsEnabledTo (QWidget arg1)
 
 
new bool IsEnabledToTLW ()
 
 
new bool IsHidden ()
 
 
new bool IsLeftToRight ()
 
new bool IsRightToLeft ()
 
new bool IsTopLevel ()
 
 
new bool IsVisibleTo (QWidget arg1)
 
 
new bool IsWindow ()
 
 
new void Lower ()
 
 
new QPoint MapFrom (QWidget arg1, QPoint arg2)
 
 
new QPoint MapFromGlobal (QPoint arg1)
 
 
new QPoint MapFromParent (QPoint arg1)
 
 
new QPoint MapTo (QWidget arg1, QPoint arg2)
 
 
new QPoint MapToGlobal (QPoint arg1)
 
 
new QPoint MapToParent (QPoint arg1)
 
 
virtual QSize MinimumSizeHint ()
 
new void Move (int x, int y)
 
new QWidget NativeParentWidget ()
 
 
new QWidget NextInFocusChain ()
 
 
new void OverrideWindowFlags (Qt.WindowType type)
 
 
new void OverrideWindowState (Qt.WindowState state)
 
virtual QPaintEngine PaintEngine ()
 
 
new QPalette palette ()
 
new QWidget ParentWidget ()
 
 
new QWidget PreviousInFocusChain ()
 
 
new void Raise ()
 
 
virtual void ReleaseDC (System.IntPtr arg1)
 
 
new void ReleaseKeyboard ()
 
 
new void ReleaseMouse ()
 
 
new void ReleaseShortcut (int id)
 
 
new void RemoveAction (QAction action)
 
 
new void Render (IQPaintDevice target)
 
 
new void Render (QPainter painter)
 
 
new void Render (IQPaintDevice target, QPoint targetOffset)
 
 
new void Render (QPainter painter, QPoint targetOffset)
 
 
new void Render (IQPaintDevice target, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag renderFlags=QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren)
 
 
new void Render (QPainter painter, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag renderFlags=QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren)
 
 
new void Repaint ()
 
 
new void Repaint (QRect arg1)
 
 
new void Repaint (QRegion arg1)
 
 
new void Repaint (int x, int y, int w, int h)
 
 
new void Resize (int w, int h)
 
new bool RestoreGeometry (QByteArray geometry)
 
 
new QByteArray SaveGeometry ()
 
 
new void Scroll (int dx, int dy)
 
 
new void Scroll (int dx, int dy, QRect arg3)
 
 
new void SetAttribute (Qt.WidgetAttribute arg1, bool on=true)
 
 
new void SetBaseSize (int basew, int baseh)
 
new void SetContentsMargins (int left, int top, int right, int bottom)
 
 
new void SetDisabled (bool arg1)
 
 
new void SetFixedHeight (int h)
 
 
new void SetFixedSize (QSize arg1)
 
 
new void SetFixedSize (int w, int h)
 
 
new void SetFixedWidth (int w)
 
 
new void SetFocus ()
 
 
new void SetFocus (Qt.FocusReason reason)
 
 
new void SetGeometry (int x, int y, int w, int h)
 
new void SetHidden (bool hidden)
 
 
new void SetInputMethodHints (Qt.InputMethodHint hints)
 
new void SetMask (QBitmap arg1)
 
 
new void SetMaximumSize (int maxw, int maxh)
 
new void SetMinimumSize (int minw, int minh)
 
new void SetParent (QWidget parent)
 
 
new void SetParent (QWidget parent, Qt.WindowType f)
 
 
new void SetShortcutAutoRepeat (int id, bool enable=true)
 
 
new void SetShortcutEnabled (int id, bool enable=true)
 
 
new void SetShown (bool shown)
 
new void SetSizeIncrement (int w, int h)
 
new void SetSizePolicy (QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical)
 
virtual void SetVisible (bool visible)
 
new void Show ()
 
 
new void ShowFullScreen ()
 
 
new void ShowMaximized ()
 
 
new void ShowMinimized ()
 
 
new void ShowNormal ()
 
 
new void StackUnder (QWidget arg1)
 
 
new bool TestAttribute (Qt.WidgetAttribute arg1)
 
 
new QWidget TopLevelWidget ()
 
 
new bool UnderMouse ()
 
 
new void UngrabGesture (Qt.GestureType type)
 
 
new void UnsetCursor ()
 
new void UnsetLayoutDirection ()
 
new void UnsetLocale ()
 
new void Update ()
 
 
new void Update (QRect arg1)
 
 
new void Update (QRegion arg1)
 
 
new void Update (int x, int y, int w, int h)
 
 
new void UpdateGeometry ()
 
 
new QRegion VisibleRegion ()
 
 
new NativeULong WinId ()
 
 
new QWidget Window ()
 
 
new Qt.WindowType WindowType ()
 
 
new void Dispose ()
 
new int ColorCount ()
 
new int Depth ()
 
new int HeightMM ()
 
new int LogicalDpiX ()
 
new int LogicalDpiY ()
 
new int NumColors ()
 
new bool PaintingActive ()
 
new int PhysicalDpiX ()
 
new int PhysicalDpiY ()
 
new int WidthMM ()
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
 
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 
- Public Member Functions inherited from QtGui.IQPaintDevice
new int ColorCount ()
 
new int Depth ()
 
int DevType ()
 
System.IntPtr GetDC ()
 
new int Height ()
 
new int HeightMM ()
 
new int LogicalDpiX ()
 
new int LogicalDpiY ()
 
new int NumColors ()
 
QPaintEngine PaintEngine ()
 
new bool PaintingActive ()
 
new int PhysicalDpiX ()
 
new int PhysicalDpiY ()
 
void ReleaseDC (System.IntPtr hdc)
 
new int Width ()
 
new int WidthMM ()
 

Static Public Member Functions

static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QWidget
static QWidget Find (NativeULong arg1)
 
 
static QWidget KeyboardGrabber ()
 
 
static QWidget MouseGrabber ()
 
 
static void SetTabOrder (QWidget arg1, QWidget arg2)
 
 
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QWebView (System.Type dummy)
 
override void OnChangeEvent (QEvent arg1)
 
 
override void OnContextMenuEvent (QContextMenuEvent arg1)
 
 
virtual QWebView CreateWindow (QWebPage.WebWindowType type)
 
 
override void OnDragEnterEvent (QDragEnterEvent arg1)
 
 
override void OnDragLeaveEvent (QDragLeaveEvent arg1)
 
 
override void OnDragMoveEvent (QDragMoveEvent arg1)
 
 
override void OnDropEvent (QDropEvent arg1)
 
 
override void OnFocusInEvent (QFocusEvent arg1)
 
 
override bool FocusNextPrevChild (bool next)
 
 
override void OnFocusOutEvent (QFocusEvent arg1)
 
 
new void OnIconChanged ()
 
 
override void OnInputMethodEvent (QInputMethodEvent arg1)
 
 
override void OnKeyPressEvent (QKeyEvent arg1)
 
 
override void OnKeyReleaseEvent (QKeyEvent arg1)
 
 
new void OnLinkClicked (QUrl arg1)
 
 
new void OnLoadFinished (bool arg1)
 
 
new void OnLoadProgress (int progress)
 
 
new void OnLoadStarted ()
 
 
override void OnMouseDoubleClickEvent (QMouseEvent arg1)
 
 
override void OnMouseMoveEvent (QMouseEvent arg1)
 
 
override void OnMousePressEvent (QMouseEvent arg1)
 
 
override void OnMouseReleaseEvent (QMouseEvent arg1)
 
 
override void OnPaintEvent (QPaintEvent arg1)
 
 
override void OnResizeEvent (QResizeEvent arg1)
 
 
new void OnSelectionChanged ()
 
 
new void OnStatusBarMessage (string text)
 
 
new void OnTitleChanged (string title)
 
 
new void OnUrlChanged (QUrl arg1)
 
 
override void OnWheelEvent (QWheelEvent arg1)
 
 
- Protected Member Functions inherited from QtGui.QWidget
 QWidget (System.Type dummy)
 
virtual void OnActionEvent (QActionEvent arg1)
 
 
virtual void OnCloseEvent (QCloseEvent arg1)
 
 
new void Create ()
 
 
new void Create (NativeULong arg1, bool initializeWindow=true, bool destroyOldWindow=true)
 
 
new void OnCustomContextMenuRequested (QPoint pos)
 
 
new void Destroy (bool destroyWindow=true, bool destroySubWindows=true)
 
 
virtual void EnabledChange (bool arg1)
 
virtual void OnEnterEvent (QEvent arg1)
 
 
new bool FocusNextChild ()
 
 
new bool FocusPreviousChild ()
 
 
virtual void FontChange (QFont arg1)
 
virtual void OnHideEvent (QHideEvent arg1)
 
 
virtual void LanguageChange ()
 
 
virtual void OnLeaveEvent (QEvent arg1)
 
 
virtual int Metric (QPaintDevice.PaintDeviceMetric arg1)
 
 
virtual void OnMoveEvent (QMoveEvent arg1)
 
 
virtual void PaletteChange (QPalette arg1)
 
new void ResetInputContext ()
 
 
virtual void OnShowEvent (QShowEvent arg1)
 
 
virtual void StyleChange (QStyle arg1)
 
virtual void OnTabletEvent (QTabletEvent arg1)
 
 
new void UpdateMicroFocus ()
 
 
virtual void WindowActivationChange (bool arg1)
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent arg1)
 
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Properties

Slot LoadStarted
 
 
Slot< System.Int32 > LoadProgress
 
 
Slot< System.Boolean > LoadFinished
 
 
Slot< System.String > TitleChanged
 
 
Slot< System.String > StatusBarMessage
 
 
Slot< QUrlLinkClicked
 
 
Slot SelectionChanged
 
 
Slot IconChanged
 
 
Slot< QUrlUrlChanged
 
 
new QWebPage Page [get, set]
 
 
new string Title [get]
 
 
new QUrl Url [get, set]
 
 
new QIcon Icon [get]
 
 
new string SelectedText [get]
 
 
new string SelectedHtml [get]
 
 
new bool HasSelection [get]
 
 
new bool Modified [get]
 
 
new double TextSizeMultiplier [get, set]
 
new double ZoomFactor [get, set]
 
 
new QPainter.RenderHint RenderHints [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQWebViewSignals Emit [get]
 
- Properties inherited from QtGui.QWidget
virtual EventHandler
< QEventArgs< QActionEvent > > 
ActionEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
ChangeEvent
 
 
virtual EventHandler
< QEventArgs< QCloseEvent > > 
CloseEvent
 
 
virtual EventHandler
< QEventArgs
< QContextMenuEvent > > 
ContextMenuEvent
 
 
virtual EventHandler
< QEventArgs< QDragEnterEvent > > 
DragEnterEvent
 
 
virtual EventHandler
< QEventArgs< QDragLeaveEvent > > 
DragLeaveEvent
 
 
virtual EventHandler
< QEventArgs< QDragMoveEvent > > 
DragMoveEvent
 
 
virtual EventHandler
< QEventArgs< QDropEvent > > 
DropEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
EnterEvent
 
 
virtual EventHandler
< QEventArgs< QFocusEvent > > 
FocusInEvent
 
 
virtual EventHandler
< QEventArgs< QFocusEvent > > 
FocusOutEvent
 
 
virtual EventHandler
< QEventArgs< QHideEvent > > 
HideEvent
 
 
virtual EventHandler
< QEventArgs
< QInputMethodEvent > > 
InputMethodEvent
 
 
virtual EventHandler
< QEventArgs< QKeyEvent > > 
KeyPressEvent
 
 
virtual EventHandler
< QEventArgs< QKeyEvent > > 
KeyReleaseEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
LeaveEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MouseDoubleClickEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MouseMoveEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MousePressEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MouseReleaseEvent
 
 
virtual EventHandler
< QEventArgs< QMoveEvent > > 
MoveEvent
 
 
virtual EventHandler
< QEventArgs< QPaintEvent > > 
PaintEvent
 
 
virtual EventHandler
< QEventArgs< QResizeEvent > > 
ResizeEvent
 
 
virtual EventHandler
< QEventArgs< QShowEvent > > 
ShowEvent
 
 
virtual EventHandler
< QEventArgs< QTabletEvent > > 
TabletEvent
 
 
virtual EventHandler
< QEventArgs< QWheelEvent > > 
WheelEvent
 
 
Slot< QPointCustomContextMenuRequested
 
 
new QPalette.ColorRole BackgroundRole [get, set]
 
 
new QMargins ContentsMargins [get, set]
 
 
new QWidget FocusProxy [get, set]
 
 
new QPalette.ColorRole ForegroundRole [get, set]
 
 
new QGraphicsEffect GraphicsEffect [get, set]
 
 
new QInputContext InputContext [get, set]
 
 
new QLayout Layout [get, set]
 
 
new QRegion Mask [get, set]
 
 
new QStyle Style [get, set]
 
 
new Qt.WindowType WindowFlags [get, set]
 
new string WindowRole [get, set]
 
 
new Qt.WindowState WindowState [get, set]
 
 
new bool Modal [get]
 
 
new Qt.WindowModality WindowModality [get, set]
 
 
new bool Enabled [get, set]
 
 
new QRect Geometry [get, set]
 
 
new QRect FrameGeometry [get]
 
 
new QRect NormalGeometry [get]
 
 
new int X [get]
 
 
new int Y [get]
 
 
new QPoint Pos [get, set]
 
 
new QSize FrameSize [get]
 
 
new QSize Size [get, set]
 
 
new int Width [get]
 
 
new int Height [get]
 
 
new QRect Rect [get]
 
 
new QRect ChildrenRect [get]
 
 
new QRegion ChildrenRegion [get]
 
 
new QSizePolicy SizePolicy [get, set]
 
 
new QSize MinimumSize [get, set]
 
 
new QSize MaximumSize [get, set]
 
 
new int MinimumWidth [get, set]
 
 
new int MinimumHeight [get, set]
 
 
new int MaximumWidth [get, set]
 
 
new int MaximumHeight [get, set]
 
 
new QSize SizeIncrement [get, set]
 
 
new QSize BaseSize [get, set]
 
 
new QPalette Palette [get, set]
 
 
new QFont Font [get, set]
 
 
new QCursor Cursor [get, set]
 
 
new bool MouseTracking [get, set]
 
 
new bool IsActiveWindow [get]
 
 
new Qt.FocusPolicy FocusPolicy [get, set]
 
 
new bool Focus [get]
 
 
new Qt.ContextMenuPolicy ContextMenuPolicy [get, set]
 
 
new bool UpdatesEnabled [get, set]
 
 
new bool Visible [get, set]
 
 
new bool Minimized [get]
 
 
new bool Maximized [get]
 
 
new bool FullScreen [get]
 
 
new bool AcceptDrops [get, set]
 
 
new string WindowTitle [get, set]
 
 
new QIcon WindowIcon [get, set]
 
 
new string WindowIconText [get, set]
 
 
new double WindowOpacity [get, set]
 
 
new bool WindowModified [get, set]
 
 
new string ToolTip [get, set]
 
 
new string StatusTip [get, set]
 
 
new string WhatsThis [get, set]
 
 
new string AccessibleName [get, set]
 
 
new string AccessibleDescription [get, set]
 
 
new Qt.LayoutDirection LayoutDirection [get, set]
 
 
new bool AutoFillBackground [get, set]
 
 
new string StyleSheet [get, set]
 
 
new QLocale Locale [get, set]
 
 
new string WindowFilePath [get, set]
 
 
new Qt.InputMethodHint InputMethodHints [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new ushort Painters [get, set]
 
new IQWidgetSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 

Additional Inherited Members

- Public Types inherited from QtGui.QWidget
enum  RenderFlag { DrawChildren = 2, DrawWindowBackground = 1, IgnoreMask = 4 }
  More...
 
- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QWebView class provides a widget that is used to view and edit web documents.

QWebView is the main widget component of the QtWebKit web browsing module. It can be used in various applications to display web content live from the Internet.

The image below shows QWebView previewed in Qt Designer with a Nokia website.

A web site can be loaded onto QWebView with the load() function. Like all Qt widgets, the show() function must be invoked in order to display QWebView. The snippet below illustrates this:

QWebView *view = new QWebView(parent);

view->load(QUrl("http://qt.nokia.com/&quot;));

view->show();

Alternatively, setUrl() can also be used to load a web site. If you have the HTML content readily available, you can use setHtml() instead.

The loadStarted() signal is emitted when the view begins loading. The loadProgress() signal, on the other hand, is emitted whenever an element of the web view completes loading, such as an embedded image, a script, etc. Finally, the loadFinished() signal is emitted when the view has loaded completely. It's argument - either true or false - indicates load success or failure.

The page() function returns a pointer to the web page object. See Elements of QWebView for an explanation of how the web page is related to the view. To modify your web view's settings, you can access the QWebSettings object with the settings() function. With QWebSettings, you can change the default fonts, enable or disable features such as JavaScript and plugins.

The title of an HTML document can be accessed with the title() property. Additionally, a web site may also specify an icon, which can be accessed using the icon() property. If the title or the icon changes, the corresponding titleChanged() and iconChanged() signals will be emitted. The textSizeMultiplier() property can be used to change the overall size of the text displayed in the web view.

If you require a custom context menu, you can implement it by reimplementing contextMenuEvent() and populating your QMenu with the actions obtained from pageAction(). More functionality such as reloading the view, copying selected text to the clipboard, or pasting into the view, is also encapsulated within the QAction objects returned by pageAction(). These actions can be programmatically triggered using triggerPageAction(). Alternatively, the actions can be added to a toolbar or a menu directly. QWebView maintains the state of the returned actions but allows modification of action properties such as text or icon.

A QWebView can be printed onto a QPrinter using the print() function. This function is marked as a slot and can be conveniently connected to QPrintPreviewDialog's paintRequested() signal.

If you want to provide support for web sites that allow the user to open new windows, such as pop-up windows, you can subclass QWebView and reimplement the createWindow() function.

Elements of QWebView

QWebView consists of other objects such as QWebFrame and QWebPage. The flowchart below shows these elements are related.

Note: It is possible to use QWebPage and QWebFrame, without using QWebView, if you do not require QWidget attributes. Nevertheless, QtWebKit depends on QtGui, so you should use a QApplication instead of QCoreApplication.

See also Previewer Example, Web Browser, Form Extractor Example, Google Chat Example, and Fancy Browser Example.

Constructor & Destructor Documentation

QtWebKit.QWebView.QWebView ( System.Type  dummy)
protected
QtWebKit.QWebView.QWebView ( QWidget  parent = null)

Constructs an empty QWebView with parent parent.

See also load().

Member Function Documentation

new void QtWebKit.QWebView.Back ( )

Convenience slot that loads the previous document in the list of documents built by navigating links. Does nothing if there is no previous document.

It is equivalent to

view->page()->triggerPageAction(QWebPage::GoBack);

See also forward() and pageAction().

override void QtWebKit.QWebView.CreateProxy ( )
virtual

Reimplemented from QtGui.QWidget.

virtual QWebView QtWebKit.QWebView.CreateWindow ( QWebPage.WebWindowType  type)
protectedvirtual

This function is called from the createWindow() method of the associated QWebPage, each time the page wants to create a new window of the given type. This might be the result, for example, of a JavaScript request to open a document in a new window.

Note: If the createWindow() method of the associated page is reimplemented, this method is not called, unless explicitly done so in the reimplementation.

Note: In the cases when the window creation is being triggered by JavaScript, apart from reimplementing this method application must also set the JavaScriptCanOpenWindows attribute of QWebSettings to true in order for it to get called.

See also QWebPage::createWindow() and QWebPage::acceptNavigationRequest().

new void QtWebKit.QWebView.Dispose ( )
new bool QtWebKit.QWebView.FindText ( string  subString,
QWebPage.FindFlag  options = 0 
)

Finds the specified string, subString, in the page, using the given options.

If the HighlightAllOccurrences flag is passed, the function will highlight all occurrences that exist in the page. All subsequent calls will extend the highlight, rather than replace it, with occurrences of the new string.

If the HighlightAllOccurrences flag is not passed, the function will select an occurrence and all subsequent calls will replace the current occurrence with the next one.

To clear the selection, just pass an empty string.

Returns true if subString was found; otherwise returns false.

See also selectedText() and selectionChanged().

override bool QtWebKit.QWebView.FocusNextPrevChild ( bool  next)
protectedvirtual

Reimplemented from QWidget::focusNextPrevChild().

Reimplemented from QtGui.QWidget.

new void QtWebKit.QWebView.Forward ( )

Convenience slot that loads the next document in the list of documents built by navigating links. Does nothing if there is no next document.

It is equivalent to

view->page()->triggerPageAction(QWebPage::GoForward);

See also back() and pageAction().

new QWebHistory QtWebKit.QWebView.History ( )

Returns a pointer to the view's history of navigated web pages.

It is equivalent to

view->page()->history();

override object QtWebKit.QWebView.InputMethodQuery ( Qt.InputMethodQuery  property)
virtual

Reimplemented from QWidget::inputMethodQuery().

Reimplemented from QtGui.QWidget.

new void QtWebKit.QWebView.Load ( QUrl  url)

Loads the specified url and displays it.

Note: The view remains the same until enough data has arrived to display the new url.

See also setUrl(), url(), urlChanged(), and QUrl::fromUserInput().

new void QtWebKit.QWebView.Load ( QNetworkRequest  request,
QNetworkAccessManager.Operation  operation = QNetworkAccessManager.Operation.GetOperation 
)

Loads the specified url and displays it.

Note: The view remains the same until enough data has arrived to display the new url.

See also setUrl(), url(), urlChanged(), and QUrl::fromUserInput().

new void QtWebKit.QWebView.Load ( QNetworkRequest  request,
QNetworkAccessManager.Operation  operation,
QByteArray  body 
)

Loads the specified url and displays it.

Note: The view remains the same until enough data has arrived to display the new url.

See also setUrl(), url(), urlChanged(), and QUrl::fromUserInput().

override void QtWebKit.QWebView.OnChangeEvent ( QEvent  arg1)
protectedvirtual

Reimplemented from QWidget::changeEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnContextMenuEvent ( QContextMenuEvent  arg1)
protectedvirtual

Reimplemented from QWidget::contextMenuEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnDragEnterEvent ( QDragEnterEvent  arg1)
protectedvirtual

Reimplemented from QWidget::dragEnterEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnDragLeaveEvent ( QDragLeaveEvent  arg1)
protectedvirtual

Reimplemented from QWidget::dragLeaveEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnDragMoveEvent ( QDragMoveEvent  arg1)
protectedvirtual

Reimplemented from QWidget::dragMoveEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnDropEvent ( QDropEvent  arg1)
protectedvirtual

Reimplemented from QWidget::dropEvent().

Reimplemented from QtGui.QWidget.

override bool QtWebKit.QWebView.OnEvent ( QEvent  arg1)
virtual

Reimplemented from QObject::event().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnFocusInEvent ( QFocusEvent  arg1)
protectedvirtual

Reimplemented from QWidget::focusInEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnFocusOutEvent ( QFocusEvent  arg1)
protectedvirtual

Reimplemented from QWidget::focusOutEvent().

Reimplemented from QtGui.QWidget.

new void QtWebKit.QWebView.OnIconChanged ( )
protected

This signal is emitted whenever the icon of the page is loaded or changes.

In order for icons to be loaded, you will need to set an icon database path using QWebSettings::setIconDatabasePath().

See also icon() and QWebSettings::setIconDatabasePath().

override void QtWebKit.QWebView.OnInputMethodEvent ( QInputMethodEvent  arg1)
protectedvirtual

Reimplemented from QWidget::inputMethodEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnKeyPressEvent ( QKeyEvent  arg1)
protectedvirtual

Reimplemented from QWidget::keyPressEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnKeyReleaseEvent ( QKeyEvent  arg1)
protectedvirtual

Reimplemented from QWidget::keyReleaseEvent().

Reimplemented from QtGui.QWidget.

new void QtWebKit.QWebView.OnLinkClicked ( QUrl  arg1)
protected

This signal is emitted whenever the user clicks on a link and the page's linkDelegationPolicy property is set to delegate the link handling for the specified url.

See also QWebPage::linkDelegationPolicy().

new void QtWebKit.QWebView.OnLoadFinished ( bool  arg1)
protected

This signal is emitted when a load of the page is finished. ok will indicate whether the load was successful or any error occurred.

See also loadStarted().

new void QtWebKit.QWebView.OnLoadProgress ( int  progress)
protected

This signal is emitted every time an element in the web page completes loading and the overall loading progress advances.

This signal tracks the progress of all child frames.

The current value is provided by progress and scales from 0 to 100, which is the default range of QProgressBar.

See also loadStarted() and loadFinished().

new void QtWebKit.QWebView.OnLoadStarted ( )
protected

This signal is emitted when a new load of the page is started.

See also loadProgress() and loadFinished().

override void QtWebKit.QWebView.OnMouseDoubleClickEvent ( QMouseEvent  arg1)
protectedvirtual

Reimplemented from QWidget::mouseDoubleClickEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnMouseMoveEvent ( QMouseEvent  arg1)
protectedvirtual

Reimplemented from QWidget::mouseMoveEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnMousePressEvent ( QMouseEvent  arg1)
protectedvirtual

Reimplemented from QWidget::mousePressEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnMouseReleaseEvent ( QMouseEvent  arg1)
protectedvirtual

Reimplemented from QWidget::mouseReleaseEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnPaintEvent ( QPaintEvent  arg1)
protectedvirtual

Reimplemented from QWidget::paintEvent().

Reimplemented from QtGui.QWidget.

override void QtWebKit.QWebView.OnResizeEvent ( QResizeEvent  arg1)
protectedvirtual

Reimplemented from QWidget::resizeEvent().

Reimplemented from QtGui.QWidget.

new void QtWebKit.QWebView.OnSelectionChanged ( )
protected

This signal is emitted whenever the selection changes.

See also selectedText().

new void QtWebKit.QWebView.OnStatusBarMessage ( string  text)
protected

This signal is emitted when the status bar text is changed by the page.

new void QtWebKit.QWebView.OnTitleChanged ( string  title)
protected

This signal is emitted whenever the title of the main frame changes.

See also title().

new void QtWebKit.QWebView.OnUrlChanged ( QUrl  arg1)
protected

This signal is emitted when the url of the view changes.

See also url() and load().

override void QtWebKit.QWebView.OnWheelEvent ( QWheelEvent  arg1)
protectedvirtual

Reimplemented from QWidget::wheelEvent().

Reimplemented from QtGui.QWidget.

new QAction QtWebKit.QWebView.PageAction ( QWebPage.WebAction  action)

Returns a pointer to a QAction that encapsulates the specified web action action.

new void QtWebKit.QWebView.Print ( QPrinter  arg1)

Prints the main frame to the given printer.

See also QWebFrame::print() and QPrintPreviewDialog.

new void QtWebKit.QWebView.Reload ( )

Reloads the current document.

See also stop(), pageAction(), and loadStarted().

new QPainter.RenderHint QtWebKit.QWebView.renderHints ( )
new void QtWebKit.QWebView.SetContent ( QByteArray  data,
string  mimeType = "" 
)

Sets the content of the web view to the specified content data. If the mimeType argument is empty it is currently assumed that the content is HTML but in future versions we may introduce auto-detection.

External objects referenced in the content are located relative to baseUrl.

The data is loaded immediately; external objects are loaded asynchronously.

See also load(), setHtml(), and QWebFrame::toHtml().

new void QtWebKit.QWebView.SetContent ( QByteArray  data,
string  mimeType,
QUrl  baseUrl 
)

Sets the content of the web view to the specified content data. If the mimeType argument is empty it is currently assumed that the content is HTML but in future versions we may introduce auto-detection.

External objects referenced in the content are located relative to baseUrl.

The data is loaded immediately; external objects are loaded asynchronously.

See also load(), setHtml(), and QWebFrame::toHtml().

new void QtWebKit.QWebView.SetHtml ( string  html)

Sets the content of the web view to the specified html.

External objects such as stylesheets or images referenced in the HTML document are located relative to baseUrl.

The html is loaded immediately; external objects are loaded asynchronously.

When using this method, WebKit assumes that external resources such as JavaScript programs or style sheets are encoded in UTF-8 unless otherwise specified. For example, the encoding of an external script can be specified through the charset attribute of the HTML script tag. Alternatively, the encoding can also be specified by the web server.

This is a convenience function equivalent to setContent(html, "text/html", baseUrl).

Warning: This function works only for HTML, for other mime types (i.e. XHTML, SVG) setContent() should be used instead.

See also load(), setContent(), QWebFrame::toHtml(), and QWebFrame::setContent().

new void QtWebKit.QWebView.SetHtml ( string  html,
QUrl  baseUrl 
)

Sets the content of the web view to the specified html.

External objects such as stylesheets or images referenced in the HTML document are located relative to baseUrl.

The html is loaded immediately; external objects are loaded asynchronously.

When using this method, WebKit assumes that external resources such as JavaScript programs or style sheets are encoded in UTF-8 unless otherwise specified. For example, the encoding of an external script can be specified through the charset attribute of the HTML script tag. Alternatively, the encoding can also be specified by the web server.

This is a convenience function equivalent to setContent(html, "text/html", baseUrl).

Warning: This function works only for HTML, for other mime types (i.e. XHTML, SVG) setContent() should be used instead.

See also load(), setContent(), QWebFrame::toHtml(), and QWebFrame::setContent().

new void QtWebKit.QWebView.SetRenderHint ( QPainter.RenderHint  hint,
bool  enabled = true 
)

If enabled is true, enables the specified render hint; otherwise disables it.

This function was introduced in Qt 4.6.

See also renderHints and QPainter::renderHints().

new void QtWebKit.QWebView.SetRenderHints ( QPainter.RenderHint  hints)
new void QtWebKit.QWebView.SetTextSizeMultiplier ( double  factor)
new QWebSettings QtWebKit.QWebView.Settings ( )

Returns a pointer to the view/page specific settings object.

It is equivalent to

view->page()->settings();

See also QWebSettings::globalSettings().

new void QtWebKit.QWebView.SetZoomFactor ( double  factor)
override QSize QtWebKit.QWebView.SizeHint ( )
virtual

Reimplemented from QWidget::sizeHint().

Reimplemented from QtGui.QWidget.

new void QtWebKit.QWebView.Stop ( )

Convenience slot that stops loading the document.

It is equivalent to

view->page()->triggerPageAction(QWebPage::Stop);

See also reload(), pageAction(), and loadFinished().

new double QtWebKit.QWebView.textSizeMultiplier ( )
static string QtWebKit.QWebView.Tr ( string  s,
string  c = null 
)
static
static string QtWebKit.QWebView.Tr ( string  s,
string  c,
int  n 
)
static
new void QtWebKit.QWebView.TriggerPageAction ( QWebPage.WebAction  action,
bool @  checked = false 
)

Triggers the specified action. If it is a checkable action the specified checked state is assumed.

The following example triggers the copy action and therefore copies any selected text to the clipboard.

view->triggerAction(QWebPage::Copy);

See also pageAction().

static string QtWebKit.QWebView.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtWebKit.QWebView.TrUtf8 ( string  s,
string  c,
int  n 
)
static
new double QtWebKit.QWebView.zoomFactor ( )

Property Documentation

new IQWebViewSignals QtWebKit.QWebView.Emit
getprotected
new bool QtWebKit.QWebView.HasSelection
get

This property holds whether this page contains selected content or not.

By default, this property is false.

new QIcon QtWebKit.QWebView.Icon
get

This property holds the icon associated with the web page currently viewed.

By default, this property contains a null icon.

Slot QtWebKit.QWebView.IconChanged
addremove

This signal is emitted whenever the icon of the page is loaded or changes.

In order for icons to be loaded, you will need to set an icon database path using QWebSettings::setIconDatabasePath().

See also icon() and QWebSettings::setIconDatabasePath().

Slot<QUrl> QtWebKit.QWebView.LinkClicked
addremove

This signal is emitted whenever the user clicks on a link and the page's linkDelegationPolicy property is set to delegate the link handling for the specified url.

See also QWebPage::linkDelegationPolicy().

Slot<System.Boolean> QtWebKit.QWebView.LoadFinished
addremove

This signal is emitted when a load of the page is finished. ok will indicate whether the load was successful or any error occurred.

See also loadStarted().

Slot<System.Int32> QtWebKit.QWebView.LoadProgress
addremove

This signal is emitted every time an element in the web page completes loading and the overall loading progress advances.

This signal tracks the progress of all child frames.

The current value is provided by progress and scales from 0 to 100, which is the default range of QProgressBar.

See also loadStarted() and loadFinished().

Slot QtWebKit.QWebView.LoadStarted
addremove

This signal is emitted when a new load of the page is started.

See also loadProgress() and loadFinished().

new bool QtWebKit.QWebView.Modified
get

This property holds whether the document was modified by the user.

Parts of HTML documents can be editable for example through the contenteditable attribute on HTML elements.

By default, this property is false.

new QWebPage QtWebKit.QWebView.Page
getset

Returns a pointer to the underlying web page.

Makes page the new web page of the web view.

The parent QObject of the provided page remains the owner of the object. If the current page is a child of the web view, it will be deleted.

new QPainter.RenderHint QtWebKit.QWebView.RenderHints
getset

This property holds the default render hints for the view.

These hints are used to initialize QPainter before painting the Web page.

QPainter::TextAntialiasing and QPainter::SmoothPixmapTransform are enabled by default.

Note: This property is not available on Symbian. However, the getter and setter functions can still be used directly.

This property was introduced in Qt 4.6.

new string QtWebKit.QWebView.SelectedHtml
get

This property holds the HTML currently selected.

By default, this property contains an empty string.

This property was introduced in Qt 4.8.

new string QtWebKit.QWebView.SelectedText
get

This property holds the text currently selected.

By default, this property contains an empty string.

Slot QtWebKit.QWebView.SelectionChanged
addremove

This signal is emitted whenever the selection changes.

See also selectedText().

new QMetaObject QtWebKit.QWebView.StaticMetaObject
staticget
Slot<System.String> QtWebKit.QWebView.StatusBarMessage
addremove

This signal is emitted when the status bar text is changed by the page.

new double QtWebKit.QWebView.TextSizeMultiplier
getset
new string QtWebKit.QWebView.Title
get

This property holds the title of the web page currently viewed.

By default, this property contains an empty string.

Slot<System.String> QtWebKit.QWebView.TitleChanged
addremove

This signal is emitted whenever the title of the main frame changes.

See also title().

new QUrl QtWebKit.QWebView.Url
getset

This property holds the url of the web page currently viewed.

Setting this property clears the view and loads the URL.

By default, this property contains an empty, invalid URL.

Slot<QUrl> QtWebKit.QWebView.UrlChanged
addremove

This signal is emitted when the url of the view changes.

See also url() and load().

new double QtWebKit.QWebView.ZoomFactor
getset

This property holds the zoom factor for the view.

This property was introduced in Qt 4.5.