Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. how to show button clicked image when I use QScroller::grabGesture

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

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 539 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mkdh
    wrote on last edited by
    #1

    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) :
    QDialog(parent),
    ui(new Ui::Dialog)
    {
    ui->setupUi(this);
    QScroller::grabGesture(ui->scrollArea,QScroller::LeftMouseButtonGesture);
    }

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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved