QLabel *label = new QLabel("Hello World"); label->setAccessibleName("Greeting"); if (label->accessibilityIsIgnored()) { qDebug() << "Label is ignored"; }
HWND hwnd = FindWindow(NULL, "My App"); if (hwnd) { if (IsWindowAccessible(hwnd)) { if (accessibilityIsIgnored(hwnd)) { std::cout << "Window is ignored"; } } }This example uses the Windows API to find a window with the title "My App". If the window is found and is accessible, the accessibilityIsIgnored function is used to check if the window is being ignored by the accessibility system. If it is being ignored, a message is printed to the console. Package library: Windows API