How could I create an action like the image shown by QtDesigner?

Printable View