Results 1 to 2 of 2

Thread: Windows Setup application built with Qt has no UI Control information

  1. #1
    Join Date
    Jul 2015
    Posts
    1
    Thanks
    1
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Windows Setup application built with Qt has no UI Control information

    Hello,

    I have been tasked with writing automated test cases for a Windows setup application built using Qt. The setup.exe launches several prereq.msi and component.msi installers. When looking at setup.exe under Visual UI Automation Verifier, there is zero information for controls.

    My developers do not know how or where to insert information for UI controls... either ID's or text.

    Is it possible for my developers to add UI control information for a Windows Setup application?

    Thanks,
    Willie

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Windows Setup application built with Qt has no UI Control information

    Qt does not use native handles for widgets unless it has to, e.g. for top level windows or, I think, when winId() is being called.
    I.e. all controls are "drawings" in the window's buffer.

    Qt does, however, allow easy access to its object tree from within the application itself, e.g. objects can get a name attaches (setObjectName) and this can be used to search for them (e.g. QObject::findChildren())

    This can either be built into the application or injected externally, e.g. see the GammaRay debugging tool: http://www.kdab.com/gammaray/

    UI Testing tools can do the same, even listen to events happening inside the application, e.g. Squish http://www.froglogic.com/squish/gui-testing/

    A somewhat less extensive but potentially viable approach is to attach accessibility information to controls and using the platform's accessibility system to interact with them.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    WillieReed (20th July 2015)

Similar Threads

  1. Creating a setup wizard in GUI application
    By newb_developer in forum Qt Programming
    Replies: 4
    Last Post: 20th June 2012, 14:18
  2. Replies: 1
    Last Post: 20th June 2012, 10:53
  3. Windows 7 QT setup
    By simonerom in forum Newbie
    Replies: 2
    Last Post: 18th November 2011, 20:16
  4. setup QTcreator and carbide C++ for S60 5th on windows 7
    By nhs_0702 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 29th May 2011, 19:55
  5. Application built, needs DLL's
    By been_1990 in forum Installation and Deployment
    Replies: 2
    Last Post: 9th January 2010, 20:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.