Control Properties change in Qt Application
Posted: Wed May 11, 2011 7:21 pm
Operating Systems: Windows 7 Starter (test machines), Windows XP-Service Pack 3 (my local machine)
Ranorex Version: 1.4
Qt version: 4.7.0
We need to extract the value of a label in a Qt application. To do so, we've been finding the control to obtain the element name of the label since the element name is the value that needs to extracted.
The problem is when the dialog is closed and re-opened, the caption/text disappears and it never re-appears. It only re-appears when the entire application is closed and re-started. The class's number also changes.
In this dialog, we are trying to obtain the "ft" value: To obtain the element name, we find the caption/text of the control. If the control's caption/text is not available, we obtain the class name and it's number
In this case, the caption/text, classname/number are both available when the dialog is opened for the first time. Here is an image of the spytool when opened the first time: When that dialog is closed and re-opened, the caption/text disappears and it never re-appears. It only re-appears when the entire application is closed and re-started. The class's number also changes. Here is an image of the spytool when the dialog is closed and re-opened: How can we get the caption/text to stay, or have the class's number not change?
We have tried to get the grouping that surrounds the label, to find the label through it's parent, but unfortunately the grouping experiences the same property-changing behavior. This is one of many dialogs that exist in the application, yet this is the only dialog that we experiences this anomaly.
Ranorex Version: 1.4
Qt version: 4.7.0
We need to extract the value of a label in a Qt application. To do so, we've been finding the control to obtain the element name of the label since the element name is the value that needs to extracted.
The problem is when the dialog is closed and re-opened, the caption/text disappears and it never re-appears. It only re-appears when the entire application is closed and re-started. The class's number also changes.
In this dialog, we are trying to obtain the "ft" value: To obtain the element name, we find the caption/text of the control. If the control's caption/text is not available, we obtain the class name and it's number
In this case, the caption/text, classname/number are both available when the dialog is opened for the first time. Here is an image of the spytool when opened the first time: When that dialog is closed and re-opened, the caption/text disappears and it never re-appears. It only re-appears when the entire application is closed and re-started. The class's number also changes. Here is an image of the spytool when the dialog is closed and re-opened: How can we get the caption/text to stay, or have the class's number not change?
We have tried to get the grouping that surrounds the label, to find the label through it's parent, but unfortunately the grouping experiences the same property-changing behavior. This is one of many dialogs that exist in the application, yet this is the only dialog that we experiences this anomaly.