Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/7.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
QwtPlot未在QtCreator中内置样式表_Qt_Qt Creator_Qwt_Qtstylesheets - Fatal编程技术网

QwtPlot未在QtCreator中内置样式表

QwtPlot未在QtCreator中内置样式表,qt,qt-creator,qwt,qtstylesheets,Qt,Qt Creator,Qwt,Qtstylesheets,我使用QwtPlot在一个样式相当繁复的应用程序中绘制一些数据。我将QtCreator用作IDE,并在开始时为整个程序加载一个样式表,以使用 qApp->setStyleSheet(style); 除了QwtPlot之外,所有内置控件都遵循我在这里设置的样式。目前,我在样式表中所做的一切都是尝试使用 QwtPlot { color: white; } 但它不起作用。但是,如果我在小部件上特别选择了“set style sheet”,那么设计师可以在QT creator中 col

我使用QwtPlot在一个样式相当繁复的应用程序中绘制一些数据。我将QtCreator用作IDE,并在开始时为整个程序加载一个样式表,以使用

qApp->setStyleSheet(style);
除了QwtPlot之外,所有内置控件都遵循我在这里设置的样式。目前,我在样式表中所做的一切都是尝试使用

QwtPlot
{
    color: white;
}
但它不起作用。但是,如果我在小部件上特别选择了“set style sheet”,那么设计师可以在QT creator中

color: white;
它起作用了

在我看来,似乎绘图没有包含顶级样式表,或者出于某种原因,我的命名/语法在选择绘图时出错(尽管我发现的为数不多的在线设置QwtPlot样式的参考使用了与我相同的选择器)

有人能帮忙吗