How to make a QPushButton appear as a shaped back button similar to iOS?
Basically a rectangle, with a triangular arrow shape on left-side:
Thanks in advance,
@Eddie you can either use
QPushButton::setIcon(const QIcon& icon), but that just paints the graphic on a standard push button leaving the frame visible. If you want to change that I am afraid you have to go deeper and override the
paintEvent(QPaintEvent *e)method of QPushButton.
Or just use a custom image with a stylesheet: