• 8447阅读
  • 3回复

qaXwidget [复制链接]

上一主题 下一主题
离线向西流
 
只看楼主 倒序阅读 楼主  发表于: 2013-05-11
我们使用windows media player 控件的类的id作为参数,对QAxWiget调用setcontrol()。从那时起,这个activeX控件的所有属性、事件、方法都可以通过QAxWidget对象而作为qt的属性、信号、方法都可以使用
要得到带数据类型的QAxWidget可用的属性、信号、槽列表,可以调用QAxBase::generateDocumentation()或者在使用qt的dumpdoc工具
我插入这个控件,但是如何将利用控件制作成的文件打开呢,还有希望能实现控件的全屏功能,不知道是在QAxWidget找还是activeX控件生成的qt属性、信号、方法中找?
以下是调用generateDocumentation()找到的,有点不懂啊

<h1 align=center>{02C0A040-AB65-4883-A0A8-BFCE7C214D05} Reference</h1>
<p>The {02C0A040-AB65-4883-A0A8-BFCE7C214D05} COM object is a QAxWidget with the CLSID {02c0a040-ab65-4883-a0a8-bfce7c214d05}.</p>
<h3>Interfaces</h3>
<ul>
<li>{4A257F07-A815-46BD-B744-CC2470282C52}
</ul>
<h3>Event Interfaces</h3>
<ul>
<li>{FFA99433-D477-4CBE-9299-5A4E7145ADA9}
<li>IPropertyNotifySink
</ul>
<h2>Public Slots:</h2>
<ul>
<li>void <a href="#DownloadFiles"><b>DownloadFiles</b></a>();</li>
<li>void <a href="#DownloadFiles2"><b>DownloadFiles2</b></a>(int syncMode);</li>
<li>QVariant <a href="#GetConfigurationProperty"><b>GetConfigurationProperty</b></a>(QString scheme, QString configObject, QString property);</li>
<li>int <a href="#GetFullsize"><b>GetFullsize</b></a>();</li>
<li>QString <a href="#GetInEventName"><b>GetInEventName</b></a>(int index);</li>
<li>int <a href="#GetInEventType"><b>GetInEventType</b></a>(int index);</li>
<li>int <a href="#GetNumberOfInEvents"><b>GetNumberOfInEvents</b></a>();</li>
<li>int <a href="#GetNumberOfOutEvents"><b>GetNumberOfOutEvents</b></a>();</li>
<li>QString <a href="#GetOutEventName"><b>GetOutEventName</b></a>(int index);</li>
<li>int <a href="#GetOutEventType"><b>GetOutEventType</b></a>(int index);</li>
<li>void <a href="#Pause"><b>Pause</b></a>(int bNewVal);</li>
<li>void <a href="#SaveSnapshot"><b>SaveSnapshot</b></a>(QString filename);</li>
<li>void <a href="#SendEvent"><b>SendEvent</b></a>(QString bstrNodeName, QVariant& pvarNodeValue);</li>
<li>void <a href="#SetAutoPlay"><b>SetAutoPlay</b></a>(int AutoPlay);</li>
<li>void <a href="#SetBackground"><b>SetBackground</b></a>(QString Background);</li>
<li>void <a href="#SetCodebase"><b>SetCodebase</b></a>(QString Codebase);</li>
<li>void <a href="#SetConfigurationProperty"><b>SetConfigurationProperty</b></a>(QString scheme, QString configObject, QString property, QVariant& newVal);</li>
<li>void <a href="#SetConfigurationScheme"><b>SetConfigurationScheme</b></a>(QString ConfigurationScheme);</li>
<li>void <a href="#SetFullsize"><b>SetFullsize</b></a>(int bEnable);</li>
<li>void <a href="#SetProgressbar"><b>SetProgressbar</b></a>(int Progressbar);</li>
<li>void <a href="#SetPrototypebaseURL"><b>SetPrototypebaseURL</b></a>(QString PrototypebaseURL);</li>
<li>void <a href="#SetSchemeValues"><b>SetSchemeValues</b></a>(QString SchemeValues);</li>
<li>void <a href="#SetSettingsButton"><b>SetSettingsButton</b></a>(int SettingsButton);</li>
<li>void <a href="#SetSimulationFile"><b>SetSimulationFile</b></a>(QString SimulationFile);</li>
<li>void <a href="#SetToolbar"><b>SetToolbar</b></a>(int Toolbar);</li>
<li>void <a href="#SetTrackerURL"><b>SetTrackerURL</b></a>(QString TrackerURL);</li>
<li>void <a href="#ShowSettingsDialog"><b>ShowSettingsDialog</b></a>();</li>
<li>void <a href="#Shutdown"><b>Shutdown</b></a>(int syncMode);</li>
<li>void <a href="#Start"><b>Start</b></a>();</li>
<li>void <a href="#Start2"><b>Start2</b></a>(int syncMode);</li>
<li>void <a href="#Stop"><b>Stop</b></a>();</li>
<li>void <a href="#Stop2"><b>Stop2</b></a>(int syncMode);</li>
</ul>
<h2>Signals:</h2>
<ul>
<li>void <a href="#OnDownloadFilesComplete"><b>OnDownloadFilesComplete</b></a>();</li>
<li>void <a href="#OnEvent"><b>OnEvent</b></a>(QString bstrNodeName, QVariant& pvarNodeValue);</li>
<li>void <a href="#OnShutdownComplete"><b>OnShutdownComplete</b></a>();</li>
<li>void <a href="#OnStartComplete"><b>OnStartComplete</b></a>();</li>
<li>void <a href="#OnStopComplete"><b>OnStopComplete</b></a>();</li>
<li>void <a href="#exception"><b>exception</b></a>(int code, QString source, QString disc, QString help);</li>
<li>void <a href="#propertyChanged"><b>propertyChanged</b></a>(QString name);</li>
<li>void <a href="#signal"><b>signal</b></a>(QString name, int argc, void* argv);</li>
</ul>
<h2>Properties:</h2>
<ul>
<li>QString <a href="#objectName"><b>objectName</b></a>;</li>
<li>bool <a href="#modal"><b>modal</b></a>;</li>
<li>Qt::WindowModality <a href="#windowModality"><b>windowModality</b></a>;</li>
<li>bool <a href="#enabled"><b>enabled</b></a>;</li>
<li>QRect <a href="#geometry"><b>geometry</b></a>;</li>
<li>QRect <a href="#frameGeometry"><b>frameGeometry</b></a>;</li>
<li>QRect <a href="#normalGeometry"><b>normalGeometry</b></a>;</li>
<li>int <a href="#x"><b>x</b></a>;</li>
<li>int <a href="#y"><b>y</b></a>;</li>
<li>QPoint <a href="#pos"><b>pos</b></a>;</li>
<li>QSize <a href="#frameSize"><b>frameSize</b></a>;</li>
<li>QSize <a href="#size"><b>size</b></a>;</li>
<li>int <a href="#width"><b>width</b></a>;</li>
<li>int <a href="#height"><b>height</b></a>;</li>
<li>QRect <a href="#rect"><b>rect</b></a>;</li>
<li>QRect <a href="#childrenRect"><b>childrenRect</b></a>;</li>
<li>QRegion <a href="#childrenRegion"><b>childrenRegion</b></a>;</li>
<li>QSizePolicy <a href="#sizePolicy"><b>sizePolicy</b></a>;</li>
<li>QSize <a href="#minimumSize"><b>minimumSize</b></a>;</li>
<li>QSize <a href="#maximumSize"><b>maximumSize</b></a>;</li>
<li>int <a href="#minimumWidth"><b>minimumWidth</b></a>;</li>
<li>int <a href="#minimumHeight"><b>minimumHeight</b></a>;</li>
<li>int <a href="#maximumWidth"><b>maximumWidth</b></a>;</li>
<li>int <a href="#maximumHeight"><b>maximumHeight</b></a>;</li>
<li>QSize <a href="#sizeIncrement"><b>sizeIncrement</b></a>;</li>
<li>QSize <a href="#baseSize"><b>baseSize</b></a>;</li>
<li>QPalette <a href="#palette"><b>palette</b></a>;</li>
<li>QFont <a href="#font"><b>font</b></a>;</li>
<li>QCursor <a href="#cursor"><b>cursor</b></a>;</li>
<li>bool <a href="#mouseTracking"><b>mouseTracking</b></a>;</li>
<li>bool <a href="#isActiveWindow"><b>isActiveWindow</b></a>;</li>
<li>Qt::FocusPolicy <a href="#focusPolicy"><b>focusPolicy</b></a>;</li>
<li>bool <a href="#focus"><b>focus</b></a>;</li>
<li>Qt::ContextMenuPolicy <a href="#contextMenuPolicy"><b>contextMenuPolicy</b></a>;</li>
<li>bool <a href="#updatesEnabled"><b>updatesEnabled</b></a>;</li>
<li>bool <a href="#visible"><b>visible</b></a>;</li>
<li>bool <a href="#minimized"><b>minimized</b></a>;</li>
<li>bool <a href="#maximized"><b>maximized</b></a>;</li>
<li>bool <a href="#fullScreen"><b>fullScreen</b></a>;</li>
<li>QSize <a href="#sizeHint"><b>sizeHint</b></a>;</li>
<li>QSize <a href="#minimumSizeHint"><b>minimumSizeHint</b></a>;</li>
<li>bool <a href="#acceptDrops"><b>acceptDrops</b></a>;</li>
<li>QString <a href="#windowTitle"><b>windowTitle</b></a>;</li>
<li>QIcon <a href="#windowIcon"><b>windowIcon</b></a>;</li>
<li>QString <a href="#windowIconText"><b>windowIconText</b></a>;</li>
<li>double <a href="#windowOpacity"><b>windowOpacity</b></a>;</li>
<li>bool <a href="#windowModified"><b>windowModified</b></a>;</li>
<li>QString <a href="#toolTip"><b>toolTip</b></a>;</li>
<li>QString <a href="#statusTip"><b>statusTip</b></a>;</li>
<li>QString <a href="#whatsThis"><b>whatsThis</b></a>;</li>
<li>QString <a href="#accessibleName"><b>accessibleName</b></a>;</li>
<li>QString <a href="#accessibleDescription"><b>accessibleDescription</b></a>;</li>
<li>Qt::LayoutDirection <a href="#layoutDirection"><b>layoutDirection</b></a>;</li>
<li>bool <a href="#autoFillBackground"><b>autoFillBackground</b></a>;</li>
<li>QString <a href="#styleSheet"><b>styleSheet</b></a>;</li>
<li>QLocale <a href="#locale"><b>locale</b></a>;</li>
<li>QString <a href="#windowFilePath"><b>windowFilePath</b></a>;</li>
<li>Qt::InputMethodHints <a href="#inputMethodHints"><b>inputMethodHints</b></a>;</li>
<li>int <a href="#AutoPlay"><b>AutoPlay</b></a>;</li>
<li>QString <a href="#Background"><b>Background</b></a>;</li>
<li>QString <a href="#Codebase"><b>Codebase</b></a>;</li>
<li>QString <a href="#ConfigurationScheme"><b>ConfigurationScheme</b></a>;</li>
<li>int <a href="#Progressbar"><b>Progressbar</b></a>;</li>
<li>QString <a href="#PrototypebaseURL"><b>PrototypebaseURL</b></a>;</li>
<li>QString <a href="#SchemeValues"><b>SchemeValues</b></a>;</li>
<li>int <a href="#SettingsButton"><b>SettingsButton</b></a>;</li>
<li>QString <a href="#SimulationFile"><b>SimulationFile</b></a>;</li>
<li>int <a href="#Toolbar"><b>Toolbar</b></a>;</li>
<li>QString <a href="#TrackerURL"><b>TrackerURL</b></a>;</li>
<li>QVariant <a href="#Version"><b>Version</b></a>;</li>
<li>QString <a href="#control"><b>control</b></a>;</li>
</ul>
<hr><h2>Member Type Documentation</h2>
<h3><a name=EONXSyncMode></a>EONXSyncMode</h3>
<ul>
<li>EONXSYNCMODE_ASYNCHRONOUS =0</li>
<li>EONXSYNCMODE_SYNCHRONOUS =1</li>
<li>EONXSYNCMODE_SYNCHRONOUS_MSGLOOP =2</li>
</ul>
<h3><a name=FieldTypes></a>FieldTypes</h3>
<ul>
<li>FT_FIRST =-1</li>
<li>SFBOOL =0</li>
<li>SFCOLOR =1</li>
<li>SFFLOAT =2</li>
<li>SFIMAGE_FT =3</li>
<li>SFINT32 =4</li>
<li>SFNODE =5</li>
<li>SFROTATION =6</li>
<li>SFSTRING =7</li>
<li>SFTIME =8</li>
<li>SFVEC2F =9</li>
<li>SFVEC3F =10</li>
<li>MFBOOL =11</li>
<li>MFCOLOR =12</li>
<li>MFFLOAT =13</li>
<li>MFIMAGE =14</li>
<li>MFINT32 =15</li>
<li>MFNODE =16</li>
<li>MFROTATION =17</li>
<li>MFSTRING =18</li>
<li>MFTIME =19</li>
<li>MFVEC2F =20</li>
<li>MFVEC3F =21</li>
<li>SFVEC4F =22</li>
<li>MFVEC4F =23</li>
<li>FT_LAST =24</li>
</ul>
<hr><h2>Member Function Documentation</h2>
<h3><a name=DownloadFiles></a>void DownloadFiles ()<tt> [slot]</tt></h3>
<p>method DownloadFiles
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(DownloadFiles()));</pre>
<p>Or call the function directly:<pre>
object->dynamicCall("DownloadFiles()");</pre>
<h3><a name=DownloadFiles2></a>void DownloadFiles2 (int syncMode)<tt> [slot]</tt></h3>
<p>method DownloadFiles2
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(DownloadFiles2(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("DownloadFiles2(int)", params);</pre>
<h3><a name=GetConfigurationProperty></a>QVariant GetConfigurationProperty (QString scheme, QString configObject, QString property)<tt> [slot]</tt></h3>
<p>method GetConfigurationProperty
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString, QString, QString)), object, SLOT(GetConfigurationProperty(QString, QString, QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
QVariant result = object->dynamicCall("GetConfigurationProperty(QString, QString, QString)", params);</pre>
<h3><a name=GetFullsize></a>int GetFullsize ()<tt> [slot]</tt></h3>
<p>method GetFullsize
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GetFullsize()));</pre>
<p>Or call the function directly:<pre>
int result = object->dynamicCall("GetFullsize()").toInt();</pre>
<h3><a name=GetInEventName></a>QString GetInEventName (int index)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(GetInEventName(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
QString result = object->dynamicCall("GetInEventName(int)", params).toString();</pre>
<h3><a name=GetInEventType></a>int GetInEventType (int index)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(GetInEventType(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
int result = object->dynamicCall("GetInEventType(int)", params).toInt();</pre>
<h3><a name=GetNumberOfInEvents></a>int GetNumberOfInEvents ()<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GetNumberOfInEvents()));</pre>
<p>Or call the function directly:<pre>
int result = object->dynamicCall("GetNumberOfInEvents()").toInt();</pre>
<h3><a name=GetNumberOfOutEvents></a>int GetNumberOfOutEvents ()<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(GetNumberOfOutEvents()));</pre>
<p>Or call the function directly:<pre>
int result = object->dynamicCall("GetNumberOfOutEvents()").toInt();</pre>
<h3><a name=GetOutEventName></a>QString GetOutEventName (int index)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(GetOutEventName(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
QString result = object->dynamicCall("GetOutEventName(int)", params).toString();</pre>
<h3><a name=GetOutEventType></a>int GetOutEventType (int index)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(GetOutEventType(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
int result = object->dynamicCall("GetOutEventType(int)", params).toInt();</pre>
<h3><a name=Pause></a>void Pause (int bNewVal)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(Pause(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("Pause(int)", params);</pre>
<h3><a name=SaveSnapshot></a>void SaveSnapshot (QString filename)<tt> [slot]</tt></h3>
<p>method SaveSnapshot
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SaveSnapshot(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SaveSnapshot(QString)", params);</pre>
<h3><a name=SendEvent></a>void SendEvent (QString bstrNodeName, QVariant& pvarNodeValue)<tt> [slot]</tt></h3>
<p>method SendEvent
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString, QVariant&)), object, SLOT(SendEvent(QString, QVariant&)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SendEvent(QString, QVariant&)", params);</pre>
<h3><a name=SetAutoPlay></a>void SetAutoPlay (int AutoPlay)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetAutoPlay(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetAutoPlay(int)", params);</pre>
<h3><a name=SetBackground></a>void SetBackground (QString Background)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetBackground(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetBackground(QString)", params);</pre>
<h3><a name=SetCodebase></a>void SetCodebase (QString Codebase)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetCodebase(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetCodebase(QString)", params);</pre>
<h3><a name=SetConfigurationProperty></a>void SetConfigurationProperty (QString scheme, QString configObject, QString property, QVariant& newVal)<tt> [slot]</tt></h3>
<p>method SetConfigurationProperty
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString, QString, QString, QVariant&)), object, SLOT(SetConfigurationProperty(QString, QString, QString, QVariant&)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetConfigurationProperty(QString, QString, QString, QVariant&)", params);</pre>
<h3><a name=SetConfigurationScheme></a>void SetConfigurationScheme (QString ConfigurationScheme)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetConfigurationScheme(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetConfigurationScheme(QString)", params);</pre>
<h3><a name=SetFullsize></a>void SetFullsize (int bEnable)<tt> [slot]</tt></h3>
<p>method SetFullsize
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetFullsize(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetFullsize(int)", params);</pre>
<h3><a name=SetProgressbar></a>void SetProgressbar (int Progressbar)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetProgressbar(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetProgressbar(int)", params);</pre>
<h3><a name=SetPrototypebaseURL></a>void SetPrototypebaseURL (QString PrototypebaseURL)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetPrototypebaseURL(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetPrototypebaseURL(QString)", params);</pre>
<h3><a name=SetSchemeValues></a>void SetSchemeValues (QString SchemeValues)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetSchemeValues(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetSchemeValues(QString)", params);</pre>
<h3><a name=SetSettingsButton></a>void SetSettingsButton (int SettingsButton)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetSettingsButton(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetSettingsButton(int)", params);</pre>
<h3><a name=SetSimulationFile></a>void SetSimulationFile (QString SimulationFile)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetSimulationFile(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetSimulationFile(QString)", params);</pre>
<h3><a name=SetToolbar></a>void SetToolbar (int Toolbar)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(SetToolbar(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetToolbar(int)", params);</pre>
<h3><a name=SetTrackerURL></a>void SetTrackerURL (QString TrackerURL)<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(QString)), object, SLOT(SetTrackerURL(QString)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("SetTrackerURL(QString)", params);</pre>
<h3><a name=ShowSettingsDialog></a>void ShowSettingsDialog ()<tt> [slot]</tt></h3>
<p>
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(ShowSettingsDialog()));</pre>
<p>Or call the function directly:<pre>
object->dynamicCall("ShowSettingsDialog()");</pre>
<h3><a name=Shutdown></a>void Shutdown (int syncMode)<tt> [slot]</tt></h3>
<p>method Shutdown
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(Shutdown(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("Shutdown(int)", params);</pre>
<h3><a name=Start></a>void Start ()<tt> [slot]</tt></h3>
<p>method Start
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Start()));</pre>
<p>Or call the function directly:<pre>
object->dynamicCall("Start()");</pre>
<h3><a name=Start2></a>void Start2 (int syncMode)<tt> [slot]</tt></h3>
<p>method Start2
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(Start2(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("Start2(int)", params);</pre>
<h3><a name=Stop></a>void Stop ()<tt> [slot]</tt></h3>
<p>method Stop
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(Stop()));</pre>
<p>Or call the function directly:<pre>
object->dynamicCall("Stop()");</pre>
<h3><a name=Stop2></a>void Stop2 (int syncMode)<tt> [slot]</tt></h3>
<p>method Stop2
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal(int)), object, SLOT(Stop2(int)));</pre>
<p>Or call the function directly:<pre>
QVariantList params = ...
object->dynamicCall("Stop2(int)", params);</pre>
<h3><a name=OnDownloadFilesComplete></a>void OnDownloadFilesComplete ()<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(OnDownloadFilesComplete()), receiver, SLOT(someSlot()));</pre>
<h3><a name=OnEvent></a>void OnEvent (QString bstrNodeName, QVariant& pvarNodeValue)<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(OnEvent(QString, QVariant&)), receiver, SLOT(someSlot(QString, QVariant&)));</pre>
<h3><a name=OnShutdownComplete></a>void OnShutdownComplete ()<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(OnShutdownComplete()), receiver, SLOT(someSlot()));</pre>
<h3><a name=OnStartComplete></a>void OnStartComplete ()<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(OnStartComplete()), receiver, SLOT(someSlot()));</pre>
<h3><a name=OnStopComplete></a>void OnStopComplete ()<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(OnStopComplete()), receiver, SLOT(someSlot()));</pre>
<h3><a name=exception></a>void exception (int code, QString source, QString disc, QString help)<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(exception(int, QString, QString, QString)), receiver, SLOT(someSlot(int, QString, QString, QString)));</pre>
<h3><a name=propertyChanged></a>void propertyChanged (QString name)<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(propertyChanged(QString)), receiver, SLOT(someSlot(QString)));</pre>
<h3><a name=signal></a>void signal (QString name, int argc, void* argv)<tt> [signal]</tt></h3>
<p>
<p>Connect a slot to this signal:<pre>
QObject::connect(object, SIGNAL(signal(QString, int, void*)), receiver, SLOT(someSlot(QString, int, void*)));</pre>
<hr><h2>Property Documentation</h2>
<h3><a name=objectName></a>QString objectName</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QString val = object->property("objectName").toString();
</pre>
Set this property' value using QObject::setProperty:<pre>
QString newValue = ...
object->setProperty("objectName", newValue);
</pre>
Or using the <a href="#setObjectName">setObjectName</a> slot.
<h3><a name=modal></a>bool modal</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
bool val = object->property("modal").toBool();
</pre>
<h3><a name=windowModality></a>Qt::WindowModality windowModality</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("windowModality").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ... // string representation of values also supported
object->setProperty("windowModality", newValue);
</pre>
Or using the <a href="#setWindowModality">setWindowModality</a> slot.
<p>See also <a href="#Qt::WindowModality">Qt::WindowModality</a>.
<h3><a name=enabled></a>bool enabled</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
bool val = object->property("enabled").toBool();
</pre>
Set this property' value using QObject::setProperty:<pre>
bool newValue = ...
object->setProperty("enabled", newValue);
</pre>
Or using the <a href="#setEnabled">setEnabled</a> slot.
<h3><a name=geometry></a>QRect geometry</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QRect val = object->property("geometry").toRect();
</pre>
Set this property' value using QObject::setProperty:<pre>
QRect newValue = ...
object->setProperty("geometry", newValue);
</pre>
Or using the <a href="#setGeometry">setGeometry</a> slot.
<h3><a name=frameGeometry></a>QRect frameGeometry</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QRect val = object->property("frameGeometry").toRect();
</pre>
<h3><a name=normalGeometry></a>QRect normalGeometry</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QRect val = object->property("normalGeometry").toRect();
</pre>
<h3><a name=x></a>int x</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("x").toInt();
</pre>
<h3><a name=y></a>int y</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("y").toInt();
</pre>
<h3><a name=pos></a>QPoint pos</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QPoint val = object->property("pos").toPoint();
</pre>
Set this property' value using QObject::setProperty:<pre>
QPoint newValue = ...
object->setProperty("pos", newValue);
</pre>
Or using the <a href="#setPos">setPos</a> slot.
<h3><a name=frameSize></a>QSize frameSize</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSize val = object->property("frameSize").toSize();
</pre>
<h3><a name=size></a>QSize size</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSize val = object->property("size").toSize();
</pre>
Set this property' value using QObject::setProperty:<pre>
QSize newValue = ...
object->setProperty("size", newValue);
</pre>
Or using the <a href="#setSize">setSize</a> slot.
<h3><a name=width></a>int width</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("width").toInt();
</pre>
<h3><a name=height></a>int height</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("height").toInt();
</pre>
<h3><a name=rect></a>QRect rect</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QRect val = object->property("rect").toRect();
</pre>
<h3><a name=childrenRect></a>QRect childrenRect</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QRect val = object->property("childrenRect").toRect();
</pre>
<h3><a name=childrenRegion></a>QRegion childrenRegion</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QRegion val = object->property("childrenRegion").toRegion();
</pre>
<h3><a name=sizePolicy></a>QSizePolicy sizePolicy</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSizePolicy val = object->property("sizePolicy").toSizePolicy();
</pre>
Set this property' value using QObject::setProperty:<pre>
QSizePolicy newValue = ...
object->setProperty("sizePolicy", newValue);
</pre>
Or using the <a href="#setSizePolicy">setSizePolicy</a> slot.
<h3><a name=minimumSize></a>QSize minimumSize</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSize val = object->property("minimumSize").toSize();
</pre>
Set this property' value using QObject::setProperty:<pre>
QSize newValue = ...
object->setProperty("minimumSize", newValue);
</pre>
Or using the <a href="#setMinimumSize">setMinimumSize</a> slot.
<h3><a name=maximumSize></a>QSize maximumSize</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSize val = object->property("maximumSize").toSize();
</pre>
Set this property' value using QObject::setProperty:<pre>
QSize newValue = ...
object->setProperty("maximumSize", newValue);
</pre>
Or using the <a href="#setMaximumSize">setMaximumSize</a> slot.
<h3><a name=minimumWidth></a>int minimumWidth</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("minimumWidth").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ...
object->setProperty("minimumWidth", newValue);
</pre>
Or using the <a href="#setMinimumWidth">setMinimumWidth</a> slot.
<h3><a name=minimumHeight></a>int minimumHeight</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("minimumHeight").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ...
object->setProperty("minimumHeight", newValue);
</pre>
Or using the <a href="#setMinimumHeight">setMinimumHeight</a> slot.
<h3><a name=maximumWidth></a>int maximumWidth</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("maximumWidth").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ...
object->setProperty("maximumWidth", newValue);
</pre>
Or using the <a href="#setMaximumWidth">setMaximumWidth</a> slot.
<h3><a name=maximumHeight></a>int maximumHeight</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("maximumHeight").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ...
object->setProperty("maximumHeight", newValue);
</pre>
Or using the <a href="#setMaximumHeight">setMaximumHeight</a> slot.
<h3><a name=sizeIncrement></a>QSize sizeIncrement</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSize val = object->property("sizeIncrement").toSize();
</pre>
Set this property' value using QObject::setProperty:<pre>
QSize newValue = ...
object->setProperty("sizeIncrement", newValue);
</pre>
Or using the <a href="#setSizeIncrement">setSizeIncrement</a> slot.
<h3><a name=baseSize></a>QSize baseSize</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QSize val = object->property("baseSize").toSize();
</pre>
Set this property' value using QObject::setProperty:<pre>
QSize newValue = ...
object->setProperty("baseSize", newValue);
</pre>
Or using the <a href="#setBaseSize">setBaseSize</a> slot.
<h3><a name=palette></a>QPalette palette</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QPalette val = object->property("palette").toPalette();
</pre>
Set this property' value using QObject::setProperty:<pre>
QPalette newValue = ...
object->setProperty("palette", newValue);
</pre>
Or using the <a href="#setPalette">setPalette</a> slot.
<h3><a name=font></a>QFont font</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QFont val = object->property("font").toFont();
</pre>
Set this property' value using QObject::setProperty:<pre>
QFont newValue = ...
object->setProperty("font", newValue);
</pre>
Or using the <a href="#setFont">setFont</a> slot.
<h3><a name=cursor></a>QCursor cursor</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
QCursor val = object->property("cursor").toCursor();
</pre>
Set this property' value using QObject::setProperty:<pre>
QCursor newValue = ...
object->setProperty("cursor", newValue);
</pre>
Or using the <a href="#setCursor">setCursor</a> slot.
<h3><a name=mouseTracking></a>bool mouseTracking</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
bool val = object->property("mouseTracking").toBool();
</pre>
Set this property' value using QObject::setProperty:<pre>
bool newValue = ...
object->setProperty("mouseTracking", newValue);
</pre>
Or using the <a href="#setMouseTracking">setMouseTracking</a> slot.
<h3><a name=isActiveWindow></a>bool isActiveWindow</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
bool val = object->property("isActiveWindow").toBool();
</pre>
<h3><a name=focusPolicy></a>Qt::FocusPolicy focusPolicy</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("focusPolicy").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ... // string representation of values also supported
object->setProperty("focusPolicy", newValue);
</pre>
Or using the <a href="#setFocusPolicy">setFocusPolicy</a> slot.
<p>See also <a href="#Qt::FocusPolicy">Qt::FocusPolicy</a>.
<h3><a name=focus></a>bool focus</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
bool val = object->property("focus").toBool();
</pre>
<h3><a name=contextMenuPolicy></a>Qt::ContextMenuPolicy contextMenuPolicy</h3>
<p>
<p>Read this property's value using QObject::property:<pre>
int val = object->property("contextMenuPolicy").toInt();
</pre>
Set this property' value using QObject::setProperty:<pre>
int newValue = ... // string repres
离线向西流
只看该作者 1楼 发表于: 2013-05-11
<hr><h2>Member Function Documentation</h2>
<h3><a name=DownloadFiles></a>void DownloadFiles ()<tt> [slot]</tt></h3>
<p>method DownloadFiles
<p>Connect a signal to this slot:<pre>
QObject::connect(sender, SIGNAL(someSignal()), object, SLOT(DownloadFiles()));</pre>
<p>Or call the function directly:<pre>
object->dynamicCall("DownloadFiles()");</pre>
试过这个代码
QObject::connect(sender, SIGNAL(someSignal()), object(这里是写qaxwidget对象吧?), SLOT(DownloadFiles(文件路径)));
编译是通过了,但是点击后就是没反应
离线dbzhang800

只看该作者 2楼 发表于: 2013-05-11
这是一个标准的html,保存成.html然后打开,或者直接交给 QTextEdit 或 QtWebKit显示
离线向西流
只看该作者 3楼 发表于: 2013-05-11
回 2楼(dbzhang800) 的帖子
我是想调用一个软件啊,利用这上头的内容(上头的代码似乎是QAxWidget插入控件之后生成的),打开eon控件制作的图形,这文件格式是edz,不是html,(或者说调用方法是QAxWIDget控件的类)
你说的是我粘贴的内容是html文件吧?还是什么意思呢?有点不理解,能否说得具体点

快速回复
限100 字节
 
上一个 下一个