Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 如何为Qt中的任何QLabel设置可访问的名称,我们可以使用windows叙述者读取该名称_C++_Windows_Qt_Accessibility_Qlabel - Fatal编程技术网

C++ 如何为Qt中的任何QLabel设置可访问的名称,我们可以使用windows叙述者读取该名称

C++ 如何为Qt中的任何QLabel设置可访问的名称,我们可以使用windows叙述者读取该名称,c++,windows,qt,accessibility,qlabel,C++,Windows,Qt,Accessibility,Qlabel,我正在尝试为QLable设置AccessibleName,我们有一个函数,但它不起作用 ui->label->setAccessibleName("My name is Dnyaneshwar"); 我对QPushButton使用了相同的功能,其工作原理是在标签上设置文本浏览器交互使其工作: ui->label->setTextInteractionFlags(Qt::TextBrowserInteraction);

我正在尝试为QLable设置
AccessibleName
,我们有一个函数,但它不起作用

ui->label->setAccessibleName("My name is Dnyaneshwar");

我对
QPushButton
使用了相同的功能,其工作原理是在标签上设置文本浏览器交互使其工作:

ui->label->setTextInteractionFlags(Qt::TextBrowserInteraction);