执行StartExecution时, 报ActiveX component can't createobject错误

本文介绍了QC11的服务器安装配置推荐,包括操作系统、应用服务器、数据库服务器和Web服务器等,并指出了对Oracle数据库支持的变化。此外,还提供了客户端的要求及解决常见问题的方法。


1、首先来看一下HP官方给的安装QC11的推荐配置:

Operating Systems

Windows Server 2008 (SP2) 64 bit

Windows Server 2003 (SP2) 64 bit or 32 bit

Sun Solaris 10 64 bit

Linux Red Hat 5.4

Linux Suse 10 64 bit

HP-UX 11i v3 64 bit

Notes:

  • For large production deployments, it is recommended that ALM be deployed on 64 bit systems.
  • Localized editions of ALM are supported only on Windows operating systems.
 
 
 

Application Servers

JBoss 5.1

WebLogic 10.3.x

WebSphere 7.0.0.9

 

Database Servers

Oracle 11.2.0.1 or 10.2.0.4

Microsoft SQL 2008 (SP1) or 2005 (SP3)

 

Web Servers

JBoss 5.1

Apache 2.2

IIS 7 or 6

WebLogic 10.3.x

IHS Server

 

 

以上是服务器安装配置推荐,最大的变化就是支持了Oracle 11数据库了。QC10.0对Oracle的支持,只支持Oracle 10及其以下版本。

 

2、客户端要求

1)QC11客户端只支持IE7.0和IE8.0,并且要在客户端同时安装Visual C++ 2005 SP1 ATL Security Update Redistributable和Microsoft .NET Framework 3.5 (SP1),才能使用。

2)注册客户端: http://localhost:8080/qcbin/start_a.jsp?common=true

3)注册fso组件: regsvr32 scrrun.dll



3、如果完成上述步骤,还不能解决问题, 请下载ALM 11的SP2补丁在服务器上安装。下载时,要注意区分32位和64位系统。

Win32位:http://h30359.www3.hp.com/hpsw/TD4QC_00234.zip

Win64位:http://h30359.www3.hp.com/hpsw/TD4QC_00235.zip


在使用 QML 的 `Component.createObject` 方法创建组件实例,可以通过传递一个属性对象作为第二个参数,来向组件内部的 `Dialog` 或其他元素传递参数。该属性对象中的键值对会被应用到新创建的对象上。以下是具体用法和示例: 在调用 `createObject` ,可以传入一个包含初始化属性的对象,例如: ```qml var dialog = component.createObject(mainWindow, { "title": "New Dialog", "contentText": "This is a dialog message." }) ``` 在这个示例中,`title` 和 `contentText` 是 `Dialog` 组件中定义的属性,它们会在组件实例化被设置。假设 `DialogWindow.qml` 中定义了如下属性: ```qml // DialogWindow.qml import QtQuick 2.15 import QtQuick.Controls 2.15 Dialog { id: dialog width: 300 height: 200 property var title: "Default Title" property var contentText: "Default Content" Text { text: parent.parent.contentText anchors.centerIn: parent } Button { text: "Close" anchors.bottom: parent.bottom anchors.horizontalCenter: parent.horizontalCenter onClicked: dialog.close() } } ``` 通过这种方式,可以在调用 `createObject` 动态设置 `Dialog` 的标题和内容[^1]。 如果组件中定义了更复杂的属性类型(如对象或数组),也可以通过类似的方式传递,确保组件内部能够正确解析和使用这些参数。此外,还可以通过绑定或信号机制在运行更新这些参数,实现更灵活的交互逻辑。 需要注意的是,如果组件尚未完全加载(即 `component.status !== Component.Ready`),则不能调用 `createObject`,否则会抛出错误。因此,在创建组件实例前,应确保组件已经加载完成,并处理可能的错误情况[^2]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值