Name Description Size Coverage
CMakeLists.txt 280 -
doc -
qgraphstheme.cpp ! \class QGraphsTheme \inmodule QtGraphs \ingroup graphs_common \brief QGraphsTheme class provides a visual style for graphs. Specifies visual properties that affect the whole graph. There are several built-in themes that can be used as is or modified freely. Themes can be created from scratch using the UserDefined enum value. Creating a theme using the default constructor produces a new user-defined theme. \section1 Customizing Theme The default theme is QtGreen, but it is possible to customize each property. The following table lists the properties controlled by a theme and the default values for UserDefined. \table \header \li Property \li Default Value \row \li backgroundVisible \li \c true \row \li seriesColors \li Qt::black \row \li seriesGradients \li QLinearGradient. Essentially fully black. \row \li colorStyle \li Uniform \row \li \l labelFont \li QFont \row \li gridVisible \li \c true \row \li labelBackgroundVisible \li \c true \row \li labelBorderVisible \li \c true \row \li labelsVisible \li \c true \endtable \section1 Usage Examples Creating a built-in theme without any modifications: \snippet doc_src_qgraphstheme.cpp 0 Creating a built-in theme and modifying some properties: \snippet doc_src_qgraphstheme.cpp 1 Modifying a user-defined theme. The theme has been created the same way it was in the previous snippets: \snippet doc_src_qgraphstheme.cpp 2 Modifying some properties after theme has been set to a graph: \snippet doc_src_qgraphstheme.cpp 3 68550 -
qgraphstheme.h 16113 -
qgraphstheme_p.h 5239 -
qquickgraphscolor.cpp 606 -
qquickgraphscolor_p.h 1056 -