Microsoft Web Browser Reference

5 篇文章 0 订阅

The Microsoft Web Browser COM object is a QAxObject with the CLSID {8856F961-340A-11D0-A96B-00C04FD705A2}.

Interfaces

  • IWebBrowser2
  • IWebBrowserApp
  • IWebBrowser

Event Interfaces

  • DWebBrowserEvents2
  • DWebBrowserEvents
  • IPropertyNotifySink

Public Slots:

Signals:

Properties:


Member Type Documentation

CommandStateChangeConstants

  • CSC_UPDATECOMMANDS =-1
  • CSC_NAVIGATEFORWARD =1
  • CSC_NAVIGATEBACK =2

NewProcessCauseConstants

  • ProtectedModeRedirect =1

OLECMDEXECOPT

  • OLECMDEXECOPT_DODEFAULT =0
  • OLECMDEXECOPT_PROMPTUSER =1
  • OLECMDEXECOPT_DONTPROMPTUSER =2
  • OLECMDEXECOPT_SHOWHELP =3

OLECMDF

  • OLECMDF_SUPPORTED =1
  • OLECMDF_ENABLED =2
  • OLECMDF_LATCHED =4
  • OLECMDF_NINCHED =8
  • OLECMDF_INVISIBLE =16
  • OLECMDF_DEFHIDEONCTXTMENU =32

OLECMDID

  • OLECMDID_OPEN =1
  • OLECMDID_NEW =2
  • OLECMDID_SAVE =3
  • OLECMDID_SAVEAS =4
  • OLECMDID_SAVECOPYAS =5
  • OLECMDID_PRINT =6
  • OLECMDID_PRINTPREVIEW =7
  • OLECMDID_PAGESETUP =8
  • OLECMDID_SPELL =9
  • OLECMDID_PROPERTIES =10
  • OLECMDID_CUT =11
  • OLECMDID_COPY =12
  • OLECMDID_PASTE =13
  • OLECMDID_PASTESPECIAL =14
  • OLECMDID_UNDO =15
  • OLECMDID_REDO =16
  • OLECMDID_SELECTALL =17
  • OLECMDID_CLEARSELECTION =18
  • OLECMDID_ZOOM =19
  • OLECMDID_GETZOOMRANGE =20
  • OLECMDID_UPDATECOMMANDS =21
  • OLECMDID_REFRESH =22
  • OLECMDID_STOP =23
  • OLECMDID_HIDETOOLBARS =24
  • OLECMDID_SETPROGRESSMAX =25
  • OLECMDID_SETPROGRESSPOS =26
  • OLECMDID_SETPROGRESSTEXT =27
  • OLECMDID_SETTITLE =28
  • OLECMDID_SETDOWNLOADSTATE =29
  • OLECMDID_STOPDOWNLOAD =30
  • OLECMDID_ONTOOLBARACTIVATED =31
  • OLECMDID_FIND =32
  • OLECMDID_DELETE =33
  • OLECMDID_HTTPEQUIV =34
  • OLECMDID_HTTPEQUIV_DONE =35
  • OLECMDID_ENABLE_INTERACTION =36
  • OLECMDID_ONUNLOAD =37
  • OLECMDID_PROPERTYBAG2 =38
  • OLECMDID_PREREFRESH =39
  • OLECMDID_SHOWSCRIPTERROR =40
  • OLECMDID_SHOWMESSAGE =41
  • OLECMDID_SHOWFIND =42
  • OLECMDID_SHOWPAGESETUP =43
  • OLECMDID_SHOWPRINT =44
  • OLECMDID_CLOSE =45
  • OLECMDID_ALLOWUILESSSAVEAS =46
  • OLECMDID_DONTDOWNLOADCSS =47
  • OLECMDID_UPDATEPAGESTATUS =48
  • OLECMDID_PRINT2 =49
  • OLECMDID_PRINTPREVIEW2 =50
  • OLECMDID_SETPRINTTEMPLATE =51
  • OLECMDID_GETPRINTTEMPLATE =52
  • OLECMDID_PAGEACTIONBLOCKED =55
  • OLECMDID_PAGEACTIONUIQUERY =56
  • OLECMDID_FOCUSVIEWCONTROLS =57
  • OLECMDID_FOCUSVIEWCONTROLSQUERY =58
  • OLECMDID_SHOWPAGEACTIONMENU =59
  • OLECMDID_ADDTRAVELENTRY =60
  • OLECMDID_UPDATETRAVELENTRY =61
  • OLECMDID_UPDATEBACKFORWARDSTATE =62
  • OLECMDID_OPTICAL_ZOOM =63
  • OLECMDID_OPTICAL_GETZOOMRANGE =64
  • OLECMDID_WINDOWSTATECHANGED =65
  • OLECMDID_ACTIVEXINSTALLSCOPE =66
  • OLECMDID_UPDATETRAVELENTRY_DATARECOVERY =67
  • OLECMDID_SHOWTASKDLG =68

SecureLockIconConstants

  • secureLockIconUnsecure =0
  • secureLockIconMixed =1
  • secureLockIconSecureUnknownBits =2
  • secureLockIconSecure40Bit =3
  • secureLockIconSecure56Bit =4
  • secureLockIconSecureFortezza =5
  • secureLockIconSecure128Bit =6

ShellWindowFindWindowOptions

  • SWFO_NEEDDISPATCH =1
  • SWFO_INCLUDEPENDING =2
  • SWFO_COOKIEPASSED =4

ShellWindowTypeConstants

  • SWC_EXPLORER =0
  • SWC_BROWSER =1
  • SWC_3RDPARTY =2
  • SWC_CALLBACK =4
  • SWC_DESKTOP =8

tagREADYSTATE

  • READYSTATE_UNINITIALIZED =0
  • READYSTATE_LOADING =1
  • READYSTATE_LOADED =2
  • READYSTATE_INTERACTIVE =3
  • READYSTATE_COMPLETE =4

Member Function Documentation

bool AddressBar () [slot]

Controls whether address bar is shown

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(AddressBar()));

Or call the function directly:

	bool result = object->dynamicCall("AddressBar()").toBool();

IDispatch* Application () [slot]

Returns the application automation object if accessible, this automation object otherwise..

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Application()));

Or call the function directly:

	QAxObject * result = object->querySubObject("Application()");

bool Busy () [slot]

Query to see if something is still in progress.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Busy()));

Or call the function directly:

	bool result = object->dynamicCall("Busy()").toBool();

void ClientToWindow (int& pcx, int& pcy) [slot]

Converts client sizes into window sizes.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(int&, int&)), object, SLOT(ClientToWindow(int&, int&)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("ClientToWindow(int&, int&)", params);

IDispatch* Container () [slot]

Returns the container/parent automation object, if any.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Container()));

Or call the function directly:

	QAxObject * result = object->querySubObject("Container()");

IDispatch* Document () [slot]

Returns the active Document automation object, if any.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Document()));

Or call the function directly:

	QAxObject * result = object->querySubObject("Document()");

void ExecWB (OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, QVariant& pvaIn, QVariant& pvaOut) [slot]

IOleCommandTarget::Exec

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(OLECMDID, OLECMDEXECOPT, QVariant&, QVariant&)), object, SLOT(ExecWB(OLECMDID, OLECMDEXECOPT, QVariant&, QVariant&)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("ExecWB(OLECMDID, OLECMDEXECOPT, QVariant&, QVariant&)", params);

QString FullName () [slot]

Returns file specification of the application, including path.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(FullName()));

Or call the function directly:

	QString result = object->dynamicCall("FullName()").toString();

bool FullScreen () [slot]

Maximizes window and turns off statusbar, toolbar, menubar, and titlebar.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(FullScreen()));

Or call the function directly:

	bool result = object->dynamicCall("FullScreen()").toBool();

QVariant GetProperty (QString Property) [slot]

Retrieve the Associated value for the property vtValue in the context of the object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(GetProperty(QString)));

Or call the function directly:

	QVariantList params = ...
	QVariant result = object->dynamicCall("GetProperty(QString)", params);

void GoBack () [slot]

Navigates to the previous item in the history list.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GoBack()));

Or call the function directly:

	object->dynamicCall("GoBack()");

void GoForward () [slot]

Navigates to the next item in the history list.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GoForward()));

Or call the function directly:

	object->dynamicCall("GoForward()");

void GoHome () [slot]

Go home/start page.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GoHome()));

Or call the function directly:

	object->dynamicCall("GoHome()");

void GoSearch () [slot]

Go Search Page.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GoSearch()));

Or call the function directly:

	object->dynamicCall("GoSearch()");

qlonglong HWND () [slot]

Returns the HWND of the current IE window.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(HWND()));

Or call the function directly:

	qlonglong result = object->dynamicCall("HWND()").toQlonglong();

int Height () [slot]

The vertical dimension (pixels) of the frame window/object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Height()));

Or call the function directly:

	int result = object->dynamicCall("Height()").toInt();

int Left () [slot]

The horizontal position (pixels) of the frame window relative to the screen/container.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Left()));

Or call the function directly:

	int result = object->dynamicCall("Left()").toInt();

QString LocationName () [slot]

Gets the short (UI-friendly) name of the URL/file currently viewed.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(LocationName()));

Or call the function directly:

	QString result = object->dynamicCall("LocationName()").toString();

QString LocationURL () [slot]

Gets the full URL/path currently viewed.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(LocationURL()));

Or call the function directly:

	QString result = object->dynamicCall("LocationURL()").toString();

bool MenuBar () [slot]

Controls whether menubar is shown.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(MenuBar()));

Or call the function directly:

	bool result = object->dynamicCall("MenuBar()").toBool();

QString Name () [slot]

Returns name of the application.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Name()));

Or call the function directly:

	QString result = object->dynamicCall("Name()").toString();

void Navigate (QString URL, QVariant& Flags, QVariant& TargetFrameName, QVariant& PostData, QVariant& Headers) [slot]

Navigates to a URL or file.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QString, QVariant&, QVariant&, QVariant&, QVariant&)), object, SLOT(Navigate(QString, QVariant&, QVariant&, QVariant&, QVariant&)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("Navigate(QString, QVariant&, QVariant&, QVariant&, QVariant&)", params);

void Navigate2 (QVariant& URL, QVariant& Flags, QVariant& TargetFrameName, QVariant& PostData, QVariant& Headers) [slot]

Navigates to a URL or file or pidl.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QVariant&, QVariant&, QVariant&, QVariant&, QVariant&)), object, SLOT(Navigate2(QVariant&, QVariant&, QVariant&, QVariant&, QVariant&)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("Navigate2(QVariant&, QVariant&, QVariant&, QVariant&, QVariant&)", params);

bool Offline () [slot]

Controls if the frame is offline (read from cache)

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Offline()));

Or call the function directly:

	bool result = object->dynamicCall("Offline()").toBool();

IDispatch* Parent () [slot]

Returns the automation object of the container/parent if one exists or this automation object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Parent()));

Or call the function directly:

	QAxObject * result = object->querySubObject("Parent()");

QString Path () [slot]

Returns the path to the application.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Path()));

Or call the function directly:

	QString result = object->dynamicCall("Path()").toString();

void PutProperty (QString Property, QVariant vtValue) [slot]

Associates vtValue with the name szProperty in the context of the object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QString, QVariant)), object, SLOT(PutProperty(QString, QVariant)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("PutProperty(QString, QVariant)", params);

OLECMDF QueryStatusWB (OLECMDID cmdID) [slot]

IOleCommandTarget::QueryStatus

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(OLECMDID)), object, SLOT(QueryStatusWB(OLECMDID)));

Or call the function directly:

	QVariantList params = ...
	OLECMDF result = object->dynamicCall("QueryStatusWB(OLECMDID)", params).toInt();

void Quit () [slot]

Exits application and closes the open document.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Quit()));

Or call the function directly:

	object->dynamicCall("Quit()");

tagREADYSTATE ReadyState () [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(ReadyState()));

Or call the function directly:

	tagREADYSTATE result = object->dynamicCall("ReadyState()").toInt();

void Refresh () [slot]

Refresh the currently viewed page.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Refresh()));

Or call the function directly:

	object->dynamicCall("Refresh()");

void Refresh2 (QVariant& Level) [slot]

Refresh the currently viewed page.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QVariant&)), object, SLOT(Refresh2(QVariant&)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("Refresh2(QVariant&)", params);

bool RegisterAsBrowser () [slot]

Registers OC as a top-level browser (for target name resolution)

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(RegisterAsBrowser()));

Or call the function directly:

	bool result = object->dynamicCall("RegisterAsBrowser()").toBool();

bool RegisterAsDropTarget () [slot]

Registers OC as a drop target for navigation

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(RegisterAsDropTarget()));

Or call the function directly:

	bool result = object->dynamicCall("RegisterAsDropTarget()").toBool();

bool Resizable () [slot]

Controls whether the window is resizable

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Resizable()));

Or call the function directly:

	bool result = object->dynamicCall("Resizable()").toBool();

void SetAddressBar (bool AddressBar) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetAddressBar(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetAddressBar(bool)", params);

void SetFullScreen (bool FullScreen) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetFullScreen(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetFullScreen(bool)", params);

void SetHeight (int Height) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetHeight(int)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetHeight(int)", params);

void SetLeft (int Left) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetLeft(int)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetLeft(int)", params);

void SetMenuBar (bool MenuBar) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetMenuBar(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetMenuBar(bool)", params);

void SetOffline (bool Offline) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetOffline(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetOffline(bool)", params);

void SetRegisterAsBrowser (bool RegisterAsBrowser) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetRegisterAsBrowser(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetRegisterAsBrowser(bool)", params);

void SetRegisterAsDropTarget (bool RegisterAsDropTarget) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetRegisterAsDropTarget(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetRegisterAsDropTarget(bool)", params);

void SetResizable (bool Resizable) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetResizable(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetResizable(bool)", params);

void SetSilent (bool Silent) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetSilent(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetSilent(bool)", params);

void SetStatusBar (bool StatusBar) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetStatusBar(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetStatusBar(bool)", params);

void SetStatusText (QString StatusText) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetStatusText(QString)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetStatusText(QString)", params);

void SetTheaterMode (bool TheaterMode) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetTheaterMode(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetTheaterMode(bool)", params);

void SetToolBar (int ToolBar) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetToolBar(int)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetToolBar(int)", params);

void SetTop (int Top) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetTop(int)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetTop(int)", params);

void SetVisible (bool Visible) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(bool)), object, SLOT(SetVisible(bool)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetVisible(bool)", params);

void SetWidth (int Width) [slot]

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetWidth(int)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("SetWidth(int)", params);

void ShowBrowserBar (QVariant& pvaClsid, QVariant& pvarShow, QVariant& pvarSize) [slot]

Set BrowserBar to Clsid

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal(QVariant&, QVariant&, QVariant&)), object, SLOT(ShowBrowserBar(QVariant&, QVariant&, QVariant&)));

Or call the function directly:

	QVariantList params = ...
	object->dynamicCall("ShowBrowserBar(QVariant&, QVariant&, QVariant&)", params);

bool Silent () [slot]

Controls if any dialog boxes can be shown

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Silent()));

Or call the function directly:

	bool result = object->dynamicCall("Silent()").toBool();

bool StatusBar () [slot]

Turn on or off the statusbar.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(StatusBar()));

Or call the function directly:

	bool result = object->dynamicCall("StatusBar()").toBool();

QString StatusText () [slot]

Text of Status window.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(StatusText()));

Or call the function directly:

	QString result = object->dynamicCall("StatusText()").toString();

void Stop () [slot]

Stops opening a file.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Stop()));

Or call the function directly:

	object->dynamicCall("Stop()");

bool TheaterMode () [slot]

Controls if the browser is in theater mode

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(TheaterMode()));

Or call the function directly:

	bool result = object->dynamicCall("TheaterMode()").toBool();

int ToolBar () [slot]

Controls which toolbar is shown.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(ToolBar()));

Or call the function directly:

	int result = object->dynamicCall("ToolBar()").toInt();

int Top () [slot]

The vertical position (pixels) of the frame window relative to the screen/container.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Top()));

Or call the function directly:

	int result = object->dynamicCall("Top()").toInt();

bool TopLevelContainer () [slot]

Returns True if this is the top level object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(TopLevelContainer()));

Or call the function directly:

	bool result = object->dynamicCall("TopLevelContainer()").toBool();

QString Type () [slot]

Returns the type of the contained document object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Type()));

Or call the function directly:

	QString result = object->dynamicCall("Type()").toString();

bool Visible () [slot]

Determines whether the application is visible or hidden.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Visible()));

Or call the function directly:

	bool result = object->dynamicCall("Visible()").toBool();

int Width () [slot]

The horizontal dimension (pixels) of the frame window/object.

Connect a signal to this slot:

	QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Width()));

Or call the function directly:

	int result = object->dynamicCall("Width()").toInt();

void BeforeNavigate (QString URL, int Flags, QString TargetFrameName, QVariant& PostData, QString Headers, bool& Cancel) [signal]

Fired when a new hyperlink is being navigated to.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(BeforeNavigate(QString, int, QString, QVariant&, QString, bool&)), receiver, SLOT(someSlot(QString, int, QString, QVariant&, QString, bool&)));

void BeforeNavigate2 (IDispatch* pDisp, QVariant& URL, QVariant& Flags, QVariant& TargetFrameName, QVariant& PostData, QVariant& Headers, bool& Cancel) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(BeforeNavigate2(IDispatch*, QVariant&, QVariant&, QVariant&, QVariant&, QVariant&, bool&)), receiver, SLOT(someSlot(IDispatch*, QVariant&, QVariant&, QVariant&, QVariant&, QVariant&, bool&)));

void ClientToHostWindow (int& CX, int& CY) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(ClientToHostWindow(int&, int&)), receiver, SLOT(someSlot(int&, int&)));

void CommandStateChange (int Command, bool Enable) [signal]

The enabled state of a command changed

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(CommandStateChange(int, bool)), receiver, SLOT(someSlot(int, bool)));

void DocumentComplete (IDispatch* pDisp, QVariant& URL) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(DocumentComplete(IDispatch*, QVariant&)), receiver, SLOT(someSlot(IDispatch*, QVariant&)));

void DownloadBegin () [signal]

Download of a page started.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(DownloadBegin()), receiver, SLOT(someSlot()));

void DownloadComplete () [signal]

Download of page complete.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(DownloadComplete()), receiver, SLOT(someSlot()));

void FileDownload (bool ActiveDocument, bool& Cancel) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(FileDownload(bool, bool&)), receiver, SLOT(someSlot(bool, bool&)));

void FrameBeforeNavigate (QString URL, int Flags, QString TargetFrameName, QVariant& PostData, QString Headers, bool& Cancel) [signal]

Fired when a new hyperlink is being navigated to in a frame.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(FrameBeforeNavigate(QString, int, QString, QVariant&, QString, bool&)), receiver, SLOT(someSlot(QString, int, QString, QVariant&, QString, bool&)));

void FrameNavigateComplete (QString URL) [signal]

Fired when a new hyperlink is being navigated to in a frame.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(FrameNavigateComplete(QString)), receiver, SLOT(someSlot(QString)));

void FrameNewWindow (QString URL, int Flags, QString TargetFrameName, QVariant& PostData, QString Headers, bool& Processed) [signal]

Fired when a new window should be created.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(FrameNewWindow(QString, int, QString, QVariant&, QString, bool&)), receiver, SLOT(someSlot(QString, int, QString, QVariant&, QString, bool&)));

void NavigateComplete (QString URL) [signal]

Fired when the document being navigated to becomes visible and enters the navigation stack.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NavigateComplete(QString)), receiver, SLOT(someSlot(QString)));

void NavigateComplete2 (IDispatch* pDisp, QVariant& URL) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NavigateComplete2(IDispatch*, QVariant&)), receiver, SLOT(someSlot(IDispatch*, QVariant&)));

void NavigateError (IDispatch* pDisp, QVariant& URL, QVariant& Frame, QVariant& StatusCode, bool& Cancel) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NavigateError(IDispatch*, QVariant&, QVariant&, QVariant&, bool&)), receiver, SLOT(someSlot(IDispatch*, QVariant&, QVariant&, QVariant&, bool&)));

void NewProcess (int lCauseFlag, IDispatch* pWB2, bool& Cancel) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NewProcess(int, IDispatch*, bool&)), receiver, SLOT(someSlot(int, IDispatch*, bool&)));

void NewWindow (QString URL, int Flags, QString TargetFrameName, QVariant& PostData, QString Headers, bool& Processed) [signal]

Fired when a new window should be created.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NewWindow(QString, int, QString, QVariant&, QString, bool&)), receiver, SLOT(someSlot(QString, int, QString, QVariant&, QString, bool&)));

void NewWindow2 (IDispatch** ppDisp, bool& Cancel) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NewWindow2(IDispatch**, bool&)), receiver, SLOT(someSlot(IDispatch**, bool&)));

void NewWindow3 (IDispatch** ppDisp, bool& Cancel, uint dwFlags, QString bstrUrlContext, QString bstrUrl) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(NewWindow3(IDispatch**, bool&, uint, QString, QString)), receiver, SLOT(someSlot(IDispatch**, bool&, uint, QString, QString)));

void OnFullScreen (bool FullScreen) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnFullScreen(bool)), receiver, SLOT(someSlot(bool)));

void OnMenuBar (bool MenuBar) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnMenuBar(bool)), receiver, SLOT(someSlot(bool)));

void OnQuit () [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnQuit()), receiver, SLOT(someSlot()));

void OnStatusBar (bool StatusBar) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnStatusBar(bool)), receiver, SLOT(someSlot(bool)));

void OnTheaterMode (bool TheaterMode) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnTheaterMode(bool)), receiver, SLOT(someSlot(bool)));

void OnToolBar (bool ToolBar) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnToolBar(bool)), receiver, SLOT(someSlot(bool)));

void OnVisible (bool Visible) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(OnVisible(bool)), receiver, SLOT(someSlot(bool)));

void PrintTemplateInstantiation (IDispatch* pDisp) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(PrintTemplateInstantiation(IDispatch*)), receiver, SLOT(someSlot(IDispatch*)));

void PrintTemplateTeardown (IDispatch* pDisp) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(PrintTemplateTeardown(IDispatch*)), receiver, SLOT(someSlot(IDispatch*)));

void PrivacyImpactedStateChange (bool bImpacted) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(PrivacyImpactedStateChange(bool)), receiver, SLOT(someSlot(bool)));

void ProgressChange (int Progress, int ProgressMax) [signal]

Fired when download progress is updated.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(ProgressChange(int, int)), receiver, SLOT(someSlot(int, int)));

void PropertyChange (QString szProperty) [signal]

Fired when the PutProperty method has been called.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(PropertyChange(QString)), receiver, SLOT(someSlot(QString)));

void Quit (bool& Cancel) [signal]

Fired when application is quiting.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(Quit(bool&)), receiver, SLOT(someSlot(bool&)));

void ReadyStateChanged (tagREADYSTATE ReadyState) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(ReadyStateChanged(tagREADYSTATE)), receiver, SLOT(someSlot(tagREADYSTATE)));

void RedirectXDomainBlocked (IDispatch* pDisp, QVariant& StartURL, QVariant& RedirectURL, QVariant& Frame, QVariant& StatusCode) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(RedirectXDomainBlocked(IDispatch*, QVariant&, QVariant&, QVariant&, QVariant&)), receiver, SLOT(someSlot(IDispatch*, QVariant&, QVariant&, QVariant&, QVariant&)));

void SetPhishingFilterStatus (int PhishingFilterStatus) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(SetPhishingFilterStatus(int)), receiver, SLOT(someSlot(int)));

void SetSecureLockIcon (int SecureLockIcon) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(SetSecureLockIcon(int)), receiver, SLOT(someSlot(int)));

void StatusTextChange (QString Text) [signal]

Statusbar text changed.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(StatusTextChange(QString)), receiver, SLOT(someSlot(QString)));

void ThirdPartyUrlBlocked (QVariant& URL, uint dwCount) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(ThirdPartyUrlBlocked(QVariant&, uint)), receiver, SLOT(someSlot(QVariant&, uint)));

void TitleChange (QString Text) [signal]

Document title changed.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(TitleChange(QString)), receiver, SLOT(someSlot(QString)));

void UpdatePageStatus (IDispatch* pDisp, QVariant& nPage, QVariant& fDone) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(UpdatePageStatus(IDispatch*, QVariant&, QVariant&)), receiver, SLOT(someSlot(IDispatch*, QVariant&, QVariant&)));

void WindowActivate () [signal]

Fired when window has been activated.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowActivate()), receiver, SLOT(someSlot()));

void WindowClosing (bool IsChildWindow, bool& Cancel) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowClosing(bool, bool&)), receiver, SLOT(someSlot(bool, bool&)));

void WindowMove () [signal]

Fired when window has been moved.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowMove()), receiver, SLOT(someSlot()));

void WindowResize () [signal]

Fired when window has been sized.

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowResize()), receiver, SLOT(someSlot()));

void WindowSetHeight (int Height) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowSetHeight(int)), receiver, SLOT(someSlot(int)));

void WindowSetLeft (int Left) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowSetLeft(int)), receiver, SLOT(someSlot(int)));

void WindowSetResizable (bool Resizable) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowSetResizable(bool)), receiver, SLOT(someSlot(bool)));

void WindowSetTop (int Top) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowSetTop(int)), receiver, SLOT(someSlot(int)));

void WindowSetWidth (int Width) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowSetWidth(int)), receiver, SLOT(someSlot(int)));

void WindowStateChanged (uint dwWindowStateFlags, uint dwValidFlagsMask) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(WindowStateChanged(uint, uint)), receiver, SLOT(someSlot(uint, uint)));

void exception (int code, QString source, QString disc, QString help) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(exception(int, QString, QString, QString)), receiver, SLOT(someSlot(int, QString, QString, QString)));

void propertyChanged (QString name) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(propertyChanged(QString)), receiver, SLOT(someSlot(QString)));

void signal (QString name, int argc, void* argv) [signal]

Connect a slot to this signal:

	QObject::connect(object, SIGNAL(signal(QString, int, void*)), receiver, SLOT(someSlot(QString, int, void*)));

Property Documentation

QString objectName

Read this property's value using QObject::property:

	QString val = object->property("objectName").toString();

Set this property' value using QObject::setProperty:

	QString newValue = ...
	object->setProperty("objectName", newValue);

Or using the setObjectName slot.

bool AddressBar

Controls whether address bar is shown

Read this property's value using QObject::property:

	bool val = object->property("AddressBar").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("AddressBar", newValue);

Or using the SetAddressBar slot.

IDispatch* Application

Returns the application automation object if accessible, this automation object otherwise..

Read this property's value using QObject::property:

	IDispatch* val = object->property("Application").toIDispatch*();

bool Busy

Query to see if something is still in progress.

Read this property's value using QObject::property:

	bool val = object->property("Busy").toBool();

IDispatch* Container

Returns the container/parent automation object, if any.

Read this property's value using QObject::property:

	IDispatch* val = object->property("Container").toIDispatch*();

IDispatch* Document

Returns the active Document automation object, if any.

Read this property's value using QObject::property:

	IDispatch* val = object->property("Document").toIDispatch*();

QString FullName

Returns file specification of the application, including path.

Read this property's value using QObject::property:

	QString val = object->property("FullName").toString();

bool FullScreen

Maximizes window and turns off statusbar, toolbar, menubar, and titlebar.

Read this property's value using QObject::property:

	bool val = object->property("FullScreen").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("FullScreen", newValue);

Or using the SetFullScreen slot.

qlonglong HWND

Returns the HWND of the current IE window.

Read this property's value using QObject::property:

	qlonglong val = object->property("HWND").toQlonglong();

int Height

The vertical dimension (pixels) of the frame window/object.

Read this property's value using QObject::property:

	int val = object->property("Height").toInt();

Set this property' value using QObject::setProperty:

	int newValue = ...
	object->setProperty("Height", newValue);

Or using the SetHeight slot.

int Left

The horizontal position (pixels) of the frame window relative to the screen/container.

Read this property's value using QObject::property:

	int val = object->property("Left").toInt();

Set this property' value using QObject::setProperty:

	int newValue = ...
	object->setProperty("Left", newValue);

Or using the SetLeft slot.

QString LocationName

Gets the short (UI-friendly) name of the URL/file currently viewed.

Read this property's value using QObject::property:

	QString val = object->property("LocationName").toString();

QString LocationURL

Gets the full URL/path currently viewed.

Read this property's value using QObject::property:

	QString val = object->property("LocationURL").toString();

bool MenuBar

Controls whether menubar is shown.

Read this property's value using QObject::property:

	bool val = object->property("MenuBar").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("MenuBar", newValue);

Or using the SetMenuBar slot.

QString Name

Returns name of the application.

Read this property's value using QObject::property:

	QString val = object->property("Name").toString();

bool Offline

Controls if the frame is offline (read from cache)

Read this property's value using QObject::property:

	bool val = object->property("Offline").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("Offline", newValue);

Or using the SetOffline slot.

IDispatch* Parent

Returns the automation object of the container/parent if one exists or this automation object.

Read this property's value using QObject::property:

	IDispatch* val = object->property("Parent").toIDispatch*();

QString Path

Returns the path to the application.

Read this property's value using QObject::property:

	QString val = object->property("Path").toString();

tagREADYSTATE ReadyState

Read this property's value using QObject::property:

	int val = object->property("ReadyState").toInt();

See also tagREADYSTATE.

bool RegisterAsBrowser

Registers OC as a top-level browser (for target name resolution)

Read this property's value using QObject::property:

	bool val = object->property("RegisterAsBrowser").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("RegisterAsBrowser", newValue);

Or using the SetRegisterAsBrowser slot.

bool RegisterAsDropTarget

Registers OC as a drop target for navigation

Read this property's value using QObject::property:

	bool val = object->property("RegisterAsDropTarget").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("RegisterAsDropTarget", newValue);

Or using the SetRegisterAsDropTarget slot.

bool Resizable

Controls whether the window is resizable

Read this property's value using QObject::property:

	bool val = object->property("Resizable").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("Resizable", newValue);

Or using the SetResizable slot.

bool Silent

Controls if any dialog boxes can be shown

Read this property's value using QObject::property:

	bool val = object->property("Silent").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("Silent", newValue);

Or using the SetSilent slot.

bool StatusBar

Turn on or off the statusbar.

Read this property's value using QObject::property:

	bool val = object->property("StatusBar").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("StatusBar", newValue);

Or using the SetStatusBar slot.

QString StatusText

Text of Status window.

Read this property's value using QObject::property:

	QString val = object->property("StatusText").toString();

Set this property' value using QObject::setProperty:

	QString newValue = ...
	object->setProperty("StatusText", newValue);

Or using the SetStatusText slot.

bool TheaterMode

Controls if the browser is in theater mode

Read this property's value using QObject::property:

	bool val = object->property("TheaterMode").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("TheaterMode", newValue);

Or using the SetTheaterMode slot.

int ToolBar

Controls which toolbar is shown.

Read this property's value using QObject::property:

	int val = object->property("ToolBar").toInt();

Set this property' value using QObject::setProperty:

	int newValue = ...
	object->setProperty("ToolBar", newValue);

Or using the SetToolBar slot.

int Top

The vertical position (pixels) of the frame window relative to the screen/container.

Read this property's value using QObject::property:

	int val = object->property("Top").toInt();

Set this property' value using QObject::setProperty:

	int newValue = ...
	object->setProperty("Top", newValue);

Or using the SetTop slot.

bool TopLevelContainer

Returns True if this is the top level object.

Read this property's value using QObject::property:

	bool val = object->property("TopLevelContainer").toBool();

QString Type

Returns the type of the contained document object.

Read this property's value using QObject::property:

	QString val = object->property("Type").toString();

bool Visible

Determines whether the application is visible or hidden.

Read this property's value using QObject::property:

	bool val = object->property("Visible").toBool();

Set this property' value using QObject::setProperty:

	bool newValue = ...
	object->setProperty("Visible", newValue);

Or using the SetVisible slot.

int Width

The horizontal dimension (pixels) of the frame window/object.

Read this property's value using QObject::property:

	int val = object->property("Width").toInt();

Set this property' value using QObject::setProperty:

	int newValue = ...
	object->setProperty("Width", newValue);

Or using the SetWidth slot.

QString control

Read this property's value using QObject::property:

	QString val = object->property("control").toString();

Set this property' value using QObject::setProperty:

	QString newValue = ...
	object->setProperty("control", newValue);

Or using the setControl slot.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。 经导师精心指导并认可、获 98 分的毕业设计项目!【项目资源】:微信小程序。【项目说明】:聚焦计算机相关专业毕设及实战操练,可作课程设计与期末大作业,含全部源码,能直用于毕设,经严格调试,运行有保障!【项目服务】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值