Humm, so far I managed to do:
randomize->setText("Randomize");
connect(randomize, SIGNAL(triggered()), this, SLOT(test()));
ui->spinBox->addAction(randomize);
QAction* randomize = new QAction(this);
randomize->setText("Randomize");
connect(randomize, SIGNAL(triggered()), this, SLOT(test()));
ui->spinBox->addAction(randomize);
To copy to clipboard, switch view to plain text mode
and changed in desinger, spinBox contextMenuPolicy to actionsContextMenu.
This works fine but I want to keep the default options (Undo, redo, copy, paste etc.) and only append mine option at the end.
I checked what you gave me there Lykurg, but cannot figure out much of this.
Bookmarks