Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/142.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
梯度编辑器QT-C++_C++_Qt_Gradient - Fatal编程技术网

梯度编辑器QT-C++

梯度编辑器QT-C++,c++,qt,gradient,C++,Qt,Gradient,我想在我的代码中包含一个渐变生成器/编辑器。Qt5在designer中具有渐变编辑器。我想用它。我找到了这个QGradientDialog,但我无法使它工作 当我包括这个时,我会得到一个找不到的错误 非常感谢您的帮助。您应该将header.h和source.cpp文件添加到您的项目中。您提供的链接来自Qt 5.0快照,我在官方文档中找不到任何相关内容。你确定它在吗?我刚刚读到,选择渐变和编辑渐变对话框,这些在Qt设计器中是不可用的单独对话框。这些源位于tools/shared/qtgradien

我想在我的代码中包含一个渐变生成器/编辑器。Qt5在designer中具有渐变编辑器。我想用它。我找到了这个QGradientDialog,但我无法使它工作

当我包括这个时,我会得到一个找不到的错误


非常感谢您的帮助。

您应该将header.h和source.cpp文件添加到您的项目中。您提供的链接来自Qt 5.0快照,我在官方文档中找不到任何相关内容。你确定它在吗?我刚刚读到,选择渐变和编辑渐变对话框,这些在Qt设计器中是不可用的单独对话框。这些源位于tools/shared/qtgradienteditor下
 #include <QtGradientDialog>