QAction font color error.
-
-
I use Linux 64Bit for Qt5.4.
QAction * actionFontColor = new QAction ("Font Color", this);
actionFontColor-> setText ("A");After doing this, I want to change the color A, which is the text set in the Action, whenever the color changes.
What should I do?
@Pada_ said in QAction font color error.:
After doing this, I want to change the color A, which is the text set in the Action, whenever the color changes.
I don't get it: when does the color change? Can you explain better?
-
I use Linux 64Bit for Qt5.4.
QAction * actionFontColor = new QAction ("Font Color", this);
actionFontColor-> setText ("A");After doing this, I want to change the color A, which is the text set in the Action, whenever the color changes.
What should I do?
@Pada_ said in QAction font color error.:
After doing this, I want to change the color A, which is the text set in the Action, whenever the color changes.
this is the responsibility of the widget which visualizes the action.
So you will need to subclass it and overrride it's paintEvent