-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a problem with KEditToolbar. I've been trying to find out it didn't work for about a week and I couldn't find it. Basically, my KActions doesn't appear on the KEditToolbar, only the KStdActions appear there, do you have any idea why ? I create my actions this way: QSignalMapper *noteMapper = new QSignalMapper(this); connect( noteMapper, SIGNAL(mapped(int)), scoreReadingTrainerView, SLOT(checkNote(int))); KAction *AAction = new KAction(i18n("A"), Qt::Key_K, noteMapper, SLOT(map()), actionCollection(), "a"); noteMapper->setMapping( AAction, ScoreReadingTrainerView::A); KAction *ASharpAction = new KAction(i18n("A Sharp / B Flat"), Qt::Key_O, noteMapper, SLOT(map()), actionCollection(), "asharp"); noteMapper->setMapping( ASharpAction, ScoreReadingTrainerView::ASharp); KAction *BAction = new KAction(i18n("B"), Qt::Key_L, noteMapper, SLOT(map()), actionCollection(), "b"); noteMapper->setMapping( BAction, ScoreReadingTrainerView::B); I even add them to the rc file this way:
and