Home > Mobile >  Qwt how to change the font color coordinate system
Qwt how to change the font color coordinate system

Time:10-08

How to coordinate the default black, and change to other color

CodePudding user response:

Axis is you use QPainter painted? So you can set the brush color of painter - & gt; SetPen (Qt: : red);

CodePudding user response:

//set the color coordinate color/coordinate name

The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetLabelColor (TextColor);

The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetTickLabelColor (TextColor);

The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetTickLabelColor (TextColor);

The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetBasePen (QPen (TextColor TextWidth));

The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetBasePen (QPen (TextColor TextWidth));

The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetTickPen (QPen (TextColor TextWidth));

The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetTickPen (QPen (TextColor TextWidth));

The UI - & gt; QCustomPlot - & gt; XAxis - & gt; SetSubTickPen (QPen (TextColor TextWidth));

The UI - & gt; QCustomPlot - & gt; YAxis - & gt; SetSubTickPen (QPen (TextColor TextWidth));

CodePudding user response:

The
reference 1/f, grass response: nether
axes is you use QPainter painted? So you can set the brush color of painter - & gt; SetPen (Qt: : red);
my custom X axis as the time, Y is 0-9 number

CodePudding user response:

Axis color as if can't change, unless you write a class to inherit their, title can change color

CodePudding user response:

refer to the 4th floor wings and hard reply:
axis color as if can't change, unless you write a class inherit their title color can change
title, I know, axis is the default black, a little difficult to change

CodePudding user response:


SetStyleSheet (color: gray; "" );

Try, I remember if you can change the color of the coordinate axes

CodePudding user response:

refer to 6th floor Lost_Future response:
setStyleSheet (color: gray; "" );

Try, I remember as if can change the color of the coordinate axes
can you can! Is the ability to change colors

CodePudding user response:

refer to 7th floor qq_42094768 response:
Quote: refer to the sixth floor Lost_Future response:

SetStyleSheet (color: gray; "" );

Try, I remember as if can change the color of the coordinate axes
can you can! Is the ability to change colors
it color to make it all into the same?

CodePudding user response:

You can specify a modified one

CodePudding user response:

It seems setLabelColor TextColor);
  •  Tags:  
  • Qt
  • Related