#pragma once #include class PrintableModel { public: virtual void printTo(QPainter &painter) const = 0; protected: static QFont h1Font(); static QFont h2Font(); static QFont tableFont(); static QPen tablePen(); };