Forum Discussion

rkelsch's avatar
rkelsch
New Contributor
14 years ago

QT Recognition problems from 32 to 64bit

I am having an issue with TestComplete8 seeing the same QT window as different objects.  I'm running tests that use the same code for both 32 and 64bit versions of our program and this is the first time that it sees the windows differently.  Below you will find examples of how TestComplete sees each window:



32Bit Version -

Sys.Process("sms110").QtObject("QtModelWrapper").QtObject("buttonBox").QtObject("QPushButton", "Exit", 1).ClickButton



64Bit Version -

Call Sys.Process("sms110").Window("QWidget", "Bouss Runup/Overtopping original").Click(394, 484)



Each code snippet is doing the same thing, just recorded in 32 and 64bit to show the difference.  It appears as if the 64bit version not only has a different name but is not able to recognize the "Exit" button and clicks coordinates instead.



I am curious as to why the 64 bit version is seeing this window QT Window differently and how I can fix it so that they view it the same, any help would be appreciated. 



Thanks in advance,






  • Hello Raiphe,


    Could you please provide us with some additional information on your issue?


    1. What Qt library version do you use?

    2. Is your 64-bit Qt application recognized as Open by TestComplete? For information on how to check this, see the How to Check Whether an Application is Open section in the Open Application - Overview Help topic.

    3. Does the issue occur in the same TestComplete project running on the same computer? Does the TestComplete project where the issue occurs have the Qt Library Support plug-in installed and enabled?

    4. Does your 64-bit Qt application use alien widgets?

    5. Were the QtGui4.dll and QtCore4.dll modules of your 64-bit Qt application renamed or modified in any way?


    Thanks in advance.

  • rkelsch's avatar
    rkelsch
    New Contributor
    1. What Qt library version do you use?



    4.7.1







    2. Is your 64-bit Qt application recognized as Open by TestComplete?

    For information on how to check this, see the How to Check Whether an

    Application is Open
    section in the

    [url=http://smartbear.com/support/viewarticle/11462/]Open Application -

    Overview[/url] Help topic.



    Both the 32 and 64bit versions of our software are equally open.  They share the same public, private and protected properties.





    3. Does the issue occur in the same TestComplete project running on the same

    computer? Does the TestComplete project where the issue occurs have the

    [url=http://smartbear.com/support/viewarticle/13282/] Qt Library Support

    plug-in[/url] installed and enabled?



    Both tests are being run on the same computer and are sharing the same TestComplete code.  They only differ with the version of our software that it opens.





    4. Does your 64-bit Qt application use alien widgets?



    No.







    5. Were the QtGui4.dll and QtCore4.dll modules of your 64-bit

    Qt application renamed or modified in any way?



    I don't think so but we use Qt as a static library I believe so we

    don't reference those dlls as far as I know.
  • Hello Raiphe,


    Thank you for your answers. Unfortunately, the provided information is not enough for us to determine the cause of the problem.

    Could you please send our Support Team your 64-bit Qt application or a sample application that demonstrates the problem along with the QtCore.dll and QtGui4.dll libraries used by your application (or the QtCored.dll and QtGui4d.dll libraries if your application is compiled with debug information)? That will help us analyze the problem and reproduce it.

    Thanks in advance.