Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/161.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图标替换为另一个_C++_Qt_Styles_Icons - Fatal编程技术网

C++ 将一个Qt图标替换为另一个

C++ 将一个Qt图标替换为另一个,c++,qt,styles,icons,C++,Qt,Styles,Icons,我想用QTreeView中的打开/关闭图标替换可检查QGroupBox中的复选框图标。我已经找到了如何通过设置QCheckBox::InIndicator样式来替换检查图标的示例,但我不知道如何为QTreeView设置图标。我如何才能做到这一点?您需要设置png图标吗?你看过这个位置了吗:qt-everywhere-opensource-src-5.2.1/qtbase/src/widgets/styles/images?

我想用QTreeView中的打开/关闭图标替换可检查QGroupBox中的复选框图标。我已经找到了如何通过设置QCheckBox::InIndicator样式来替换检查图标的示例,但我不知道如何为QTreeView设置图标。我如何才能做到这一点?

您需要设置png图标吗?你看过这个位置了吗:qt-everywhere-opensource-src-5.2.1/qtbase/src/widgets/styles/images?