So, I'm looking to make a button that becomes flat when pressed in QT5. I've read this
https://woboq.com/blog/new-signals-slots-syntax-in-qt5.html
and it seems that I should be able to do this without making my own button class. So, I've got
QPushButton* button = new QPushButton("text", parent);
QObject::connect(button, &QPushButton::clicked, button, &QPushButton::isFlat(true));
and I'm gettingerror: call to non-static member function without an object argument
My questions are; am I reading this new syntax wrong? Can I only connect to static functions?