JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

A QLabel-derived class that draws an equation with LaTeX markup using JKQTMathText. More...

#include <jkqtmathtextlabel.h>

Inheritance diagram for JKQTMathTextLabel:
[legend]
Collaboration diagram for JKQTMathTextLabel:
[legend]

Public Member Functions

 JKQTMathTextLabel (QWidget *parent=nullptr)
 
virtual ~JKQTMathTextLabel ()
 
JKQTMathTextgetMathText () const
 returns the internal JKQTMathText instance used for drawing
 
void setMath (const QString &text, bool doRepaint=true)
 set the equation to draw
 

Protected Member Functions

void internalPaint ()
 
void paintEvent (QPaintEvent *event)
 

Protected Attributes

QPixmap buffer
 
QString lastText
 
JKQTMathTextm_mathText
 
bool repaintDo
 

Detailed Description

A QLabel-derived class that draws an equation with LaTeX markup using JKQTMathText.

See also
JKQTMathText

Constructor & Destructor Documentation

◆ JKQTMathTextLabel()

JKQTMathTextLabel::JKQTMathTextLabel ( QWidget *  parent = nullptr)
explicit

◆ ~JKQTMathTextLabel()

virtual JKQTMathTextLabel::~JKQTMathTextLabel ( )
virtual

Member Function Documentation

◆ getMathText()

JKQTMathText * JKQTMathTextLabel::getMathText ( ) const

returns the internal JKQTMathText instance used for drawing

Use this function to set the font, font size and other properties of the used renderer.

◆ internalPaint()

void JKQTMathTextLabel::internalPaint ( )
protected

◆ paintEvent()

void JKQTMathTextLabel::paintEvent ( QPaintEvent *  event)
protected

◆ setMath()

void JKQTMathTextLabel::setMath ( const QString &  text,
bool  doRepaint = true 
)

set the equation to draw

Member Data Documentation

◆ buffer

QPixmap JKQTMathTextLabel::buffer
protected

◆ lastText

QString JKQTMathTextLabel::lastText
protected

◆ m_mathText

JKQTMathText* JKQTMathTextLabel::m_mathText
protected

◆ repaintDo

bool JKQTMathTextLabel::repaintDo
protected

The documentation for this class was generated from the following file: