2013年9月22日星期日

[Android] How do I get information about the controls in the dialog box qt ah

Is to get people through the program dialog box controls, in mfc use a spy + + can be seen , but the spy + + qt dialog controls can not see the information ah
------ Solution - -------------------------------------------
Qt addition to the most top-level control , the control defaults to Alien , not the system 's native controls, so get their ID.
------ Solution ---------------------------------------- ----


Each control is checked (bool) this attribute , you can detect whether this be checked
------ eference ----------------- ----------------------
 If you want to get control of that information in any way related to what , say, whether the check box is selected , edit box has a value , etc.
Great God
------ eference - --------------------------------------

  
Each control is checked (bool) this attribute , you can detect whether this be checked  
then is it possible to get a handle on , it will use the current window of alien winid () obtained under native turn the handle and then checked to get attributes ?
------ eference --------------------------------------- < br>
that if you want to get information about the control it in any way , say, whether the check box is selected , edit box has a value , etc.
Great God
------ eference ----------------------------------- ----

that if you want to get information about the control it in any way , say, whether the check box is selected , edit box has a value , etc.   
Great God  
all the controls are labeled native of
------ eference --------------------------- ------------

that if you want to get information about the control it in any way , say, whether the check box is selected , edit box has a value , etc.     
Great God          
put all the controls are marked as native  
could tell how marked as native, did not contact qt, before all get mfc, trouble
------ eference --------------- ------------------------
not quite understand what you are doing in the background.
1. the same application window A window B to obtain data on the controls .
2. Application A Application B to get a window on a certain controls on the data .

Only the background clearly know how to do .
------ eference --------------------------------------- < br>
I now get the application A application B to get a window on a certain controls on the data . I would like to get information qt dialog controls some features to make this dll, and then call for mfc , mfc pass control's handle , and do qt dll controls information in the interface returns to
------ eference ---------------------------------------
Native Widgets vs Alien Widgets

Introduced in Qt 4.4, alien widgets are widgets unknown to the windowing system. They do not have a native window handle associated with them. This feature significantly speeds up widget painting, resizing, and removes flicker.

Should you require the old behavior with native windows, you can choose one of the following options:

Use the QT_USE_NATIVE_WINDOWS = 1 in your environment.
Set the Qt :: AA_NativeWindows attribute on your application. All widgets will be native widgets.
Set the Qt :: WA_NativeWindow attribute on widgets: The widget itself and all of its ancestors will become native ; (unless Qt :: WA_DontCreateNativeAncestors is set).
Call QWidget :: winId to enforce a native window (this implies 3).
Set the Qt :: WA_PaintOnScreen attribute to enforce a native window (this implies 3).

See also QEvent, QPainter, QGridLayout, and QBoxLayout.
------ eference ---------------- -----------------------

Thank you, I could look under these

没有评论:

发表评论