Forum Discussion

scrier's avatar
scrier
Contributor
14 years ago

Enabled always true with QT 4.6.4.

I have installed the QT-Support Module for TestComplete 8.50.618 with the file from http://smartbear.com/support/downloads/testcomplete/qt-modules/ named TestComplete modules (5.52 MB) under Qt 4.6.0 Support Modules. I start the application, check the first button with an alias if it is enabled (it is not before I write in a username). Now this one always returns true. Seems that setFocus() method is flaky as well. Also I cannot read text strings from the QT objects as far as autocomplete gives me in the script. Is there some extra steps that I need to do for it to work with the QT applikation or is it not supporting the 4.6.4 version we have built with?










7 Replies

  • When testing to write each attribute on the control I get the following output:




    :: TEST :: ChildCount = 0 

    :: TEST :: ControlId = 0 

    :: TEST :: Enabled = true

    :: TEST :: Exists = true 

    :: TEST :: Focused = false 

    :: TEST :: FullName = Sys.Process("archer_athena_exe").Window("QWidget", "", 3).Window("QWidget", "", 1).Window("QWidget", "", 111).Window("QWidget", "btn_1", 27)

    :: TEST :: Handle = 263806

    :: TEST :: Height = 72 

    :: TEST :: HScroll = 

    :: TEST :: Id = 263806

    :: TEST :: Index = 27

    :: TEST :: Left = 1

    :: TEST :: MappedName = Aliases.archer_athena_exe.Button1

    :: TEST :: Name = Window("QWidget", "btn_1", 27)

    :: TEST :: Parent = 

    :: TEST :: ScreenLeft = 1

    :: TEST :: ScreenTop = 1

    :: TEST :: Top = 1 

    :: TEST :: Unicode = true 

    :: TEST :: Width = 100 

    :: TEST :: Visible = true 

    :: TEST :: VisibleOnScreen = false 

    :: TEST :: WndClass = QWidget 

    :: TEST :: WndStyles = 1442840576 

    :: TEST :: WndStylesEx = 0 

    :: TEST :: VScroll = 


    The button is according to the screen shot very much not enabled according to me. Gonna try with the demo items contained in 4.6.4 QT Build and see if I get it to work with them.
  • After trying with a QT demo application called Chip I get that a button is enabled as well although it is disabled in the view. Either the 4.6.4 is not supported by the 4.6.0 modules or more likely I have done something wrong installing them. 
  • Is the issue perhaps that the application thinks its a QTWidget instead of the QTPusBotton object? Is it possible to cast the item so it works? 
  • After some reading I found the following article that I tried http://smartbear.com/support/viewarticle/11559/. By mapping from the Object Mapping menu I get the error The selected object does not match the critera of the "QT" Controls group. I tried for several different components but it could not recognise any of them, is it something I forget doing here?
  • Thank you for the response.



    Testcomplete does not recognise the QT controls, we have not renamed the libraries, although they have been compiled from source code with Mingw and gcc 3.4.5, can this be an issues and should we try to use the default package delivered by QT with binaries?
  • Hi Andreas,


    Thank you for the information. Yes, TestComplete supports only the compilers of Microsoft Visual Studio .NET 2003, Microsoft Visual Studio 2005 or Microsoft Visual Studio 2008. A Qt application built with other compilers cannot be recognized as Open by the tool. This is mentioned in the Testing Qt Applications - Overview Help topic.