Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
QPalette plt = ui->action->palette(); // not available QBrush brush = plt.color(QPalette::Text); QColor color = QColorDialog::getColor(brush.color(), this); if (color.isValid()) { plt.setColor(QPalette::Text, color); ui->action->setPalette(plt); }
Hi,
You don't, QAction has no "seeable body". It can be associated to a menu, a button but in itself it does not provide any graphical representation.