Important: Please read the Qt Code of Conduct -

how to show button clicked image when I use QScroller::grabGesture

  • I add a 'scrollarea' in my dialog .
    I let the lay out being Horizentally in 'scrollarea'.
    and I add some qpushbutton in 'scroll area'.

    And my constructor:
    Dialog::Dialog(QWidget *parent) :
    ui(new Ui::Dialog)

    my question is:
    it don't show the clicked button image when I click the button.
    Why?and how to fixed it?

Log in to reply