SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
chartproperties.h File Reference

Slice AT.3 — QObject wrapper around a QChart exposing its visual configuration as Q_PROPERTYs so a QPropertyModel can drive the per-chart "Chart Properties…" editor. More...

#include "plot/numberformat.h"
#include <QChart>
#include <QColor>
#include <QFont>
#include <QObject>
#include <QPointer>
#include <QString>
Include dependency graph for chartproperties.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::plot::ChartProperties
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::plot
 

Detailed Description

Slice AT.3 — QObject wrapper around a QChart exposing its visual configuration as Q_PROPERTYs so a QPropertyModel can drive the per-chart "Chart Properties…" editor.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Each setter applies its value to the wrapped chart immediately. The chart is held via QPointer so the wrapper survives a chart deletion (subsequent setters become no-ops; getters return cached values).

Property layout (kept tight; the dialog hosts a single QTreeView):

  • Title — titleText, titleFont
  • Y axis — yAutoRange, yMin, yMax, yGridVisible
  • X axis — xGridVisible
  • Fonts — axisLabelFont, tickLabelFont
  • Colours — backgroundColor, plotAreaColor, gridColor
  • Theme — chartTheme (enum)