Spy does not show QtElement information
Posted: Mon Mar 23, 2020 12:15 pm
Hello,
I've tried to setup a basic Windows 10 VM for testing a Qt application. Tested via Proxmox and VirtualBox VM
On my laptop the spy shows the Qt specific infomations but on the VM it is missing.
Laptop: The application is a standard c++ Qt Mainwindow Demo example (Qt version 5.14.1)
https://www.ranorex.com/help/latest/int ... t-testing/
Is there any special I have to install before I can see the QtElements within the VM?
Things I have tried:
App snapshot from virtaul box
Downdload Qt demo app: https://www.dropbox.com/s/a5agjfi0cj4cc ... n.zip?dl=0
System information -------------------------------------------------------------------------------------------------
Ranorex Version: 9.1.0+gitefec75c7
.NET Runtime version: 4.0.30319.42000
VMs:
Image Win10_1909_English_x64.iso
OS Name Microsoft Windows 10 Pro
Version 10.0.18363 Build 18363
VirtualBox Version 6.0.10 r132072 (Qt5.6.2)
Proxmox Version: pve-manager/6.1-7/13e58d5e (running kernel: 5.3.18-2-pve)
Laptop:
OS Name Microsoft Windows 10 Pro
Version 10.0.18363 Build 18363
I've tried to setup a basic Windows 10 VM for testing a Qt application. Tested via Proxmox and VirtualBox VM
On my laptop the spy shows the Qt specific infomations but on the VM it is missing.
Laptop: The application is a standard c++ Qt Mainwindow Demo example (Qt version 5.14.1)
https://www.ranorex.com/help/latest/int ... t-testing/
Is there any special I have to install before I can see the QtElements within the VM?
Things I have tried:
- I have tried 32 or 64 bit spy with and without "Qt legacy automation mode" and admin rigths, but it don't show the QtElement.
I also tried to install some vc_redist.x64.exe versions after I read this thread https://www.ranorex.com/forum/about-ide ... 12687.html
Set whitelist to ignore other running apps
The spy log shows some exceptions
Code: Select all
2020-03-20 05:47:29.956| WARN|Ranorex.Plugin.QtWindowRule|Failed to fetch QtBase interface from hwnd: 197584. Ranorex.Core.HwndInvokerException: Exception of type 'Ranorex.Core.HwndInvokerException' was thrown. Window Handle: 197584.Orig. Message: System.NullReferenceException: Object reference not set to an instance of an object.
at Ranorex.QtInjector.QtAutomationImpl.GetAppInfo()
at Ranorex.Core.HwndInvokerControl.<>c__DisplayClass26_0`1.<Call>b__0(Object[] a)
at Ranorex.Core.HwndInvokerControl.MainThreadHookProc(Int32 nCode, IntPtr wParam, IntPtr lParam)
---STACKTRACE---
Ranorex.Core.HwndInvokerException: Exception of type 'Ranorex.Core.HwndInvokerException' was thrown. Window Handle: 197584.Orig. Message: System.NullReferenceException: Object reference not set to an instance of an object.
at Ranorex.QtInjector.QtAutomationImpl.GetAppInfo()
at Ranorex.Core.HwndInvokerControl.<>c__DisplayClass26_0`1.<Call>b__0(Object[] a)
at Ranorex.Core.HwndInvokerControl.MainThreadHookProc(Int32 nCode, IntPtr wParam, IntPtr lParam)
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) +0x27
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type) +0x1ba
Ranorex.QtInjector.IQtBaseAutomation.GetAppInfo() +0xffffffff
Ranorex.Plugin.QtWindowRule.Execute(GlueRuleExecutionState state) +0xa3
System information -------------------------------------------------------------------------------------------------
Ranorex Version: 9.1.0+gitefec75c7
.NET Runtime version: 4.0.30319.42000
VMs:
Image Win10_1909_English_x64.iso
OS Name Microsoft Windows 10 Pro
Version 10.0.18363 Build 18363
VirtualBox Version 6.0.10 r132072 (Qt5.6.2)
Proxmox Version: pve-manager/6.1-7/13e58d5e (running kernel: 5.3.18-2-pve)
Laptop:
OS Name Microsoft Windows 10 Pro
Version 10.0.18363 Build 18363