Skip to main content

class QCefEvent

Represents the event sent from native context(C/C++ code) to the web context(javascript)

Summary

MembersDescriptions
public QCefEvent()Constructs an event instance.
public QCefEvent(const QString & name)Constructs an event instance with name.
public QCefEvent(const QCefEvent & other)Constructs an event instance from existing one.
public QCefEvent&operator=(const QCefEvent & other)Assigns an existing event instance to current.
public ~QCefEvent()Destructs the event instance.
public void setEventName(const QString & name)Sets the event name.
public const QString eventName() constGets the event name.
public void setArguments(const QVariantList & args)Sets the argument list.
public QVariantList & arguments()Gets the argument list.
private QScopedPointer< QCefEventPrivate > d_ptr

Members


public QCefEvent()

Constructs an event instance.


public QCefEvent(const QString & name)

Constructs an event instance with name.

Parameters

  • name The event name

public QCefEvent(const QCefEvent & other)

Constructs an event instance from existing one.

Parameters

  • other The other event instance

public QCefEvent&operator=(const QCefEvent & other)

Assigns an existing event instance to current.

Parameters

  • other The other event instance

public ~QCefEvent()

Destructs the event instance.


public void setEventName(const QString & name)

Sets the event name.

Parameters

  • name The name to be set

public const QString eventName() const

Gets the event name.

Returns

The event name


public void setArguments(const QVariantList & args)

Sets the argument list.

Parameters

  • args The argument list

public QVariantList & arguments()

Gets the argument list.

Returns

The argument list


private QScopedPointer< QCefEventPrivate > d_ptr