Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Squish/nativeType Function: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
m (AutoSpider moved page Category:Tools::Squish::Remember nativeType to Squish/nativeType Function: Title name format)
(Move [[Category::Tools::Squish]] -> [[Category::Squish]])
 
Line 1: Line 1:
[[Category:Tools::Squish]]
[[Category:Squish]]
It can be the case that you need to type some text and be picked up by the application but which the receiver of the text is either unknown or very hard to predict. Think along the lines of an event filter being installed or if an object redirects events to its children.
It can be the case that you need to type some text and be picked up by the application but which the receiver of the text is either unknown or very hard to predict. Think along the lines of an event filter being installed or if an object redirects events to its children.



Latest revision as of 08:46, 25 November 2017

It can be the case that you need to type some text and be picked up by the application but which the receiver of the text is either unknown or very hard to predict. Think along the lines of an event filter being installed or if an object redirects events to its children.

It's in these situations that you should always recur to the function nativeType().

It works very similarly to type() however it doesn't take an object as its target, rather, it emulates the typing a user would do to the application. This allows it to be redirected through the same paths and be picked by the proper objects.