QWinJumpList



  • Hello,

    I'm using Qt 5.3.1 with Visual studio 2013 32 bits.

    I want to add taks in the jumplist.

    I've modified the musicplayer example like that :

    void MusicPlayer::createJumpList()
    {
    QWinJumpList jumplist;
    jumplist.recent()->setVisible(true);

    jumplist.tasks()->setVisible(true);

    QString exe = QDir::toNativeSeparators(QApplication::applicationFilePath());
    jumplist.tasks()->addLink("toto", exe);
    jumplist.tasks()->addDestination(exe);

    QWinJumpListItem *item = new QWinJumpListItem(QWinJumpListItem::Separator);
    jumplist.tasks()->addItem(item);
    }

    but nothing appears in the jumplist, only the recent ones.

    Someone has tried to add tasks?


  • Lifetime Qt Champion

    Hi,

    Your jumplist variable goes out of scope at the end of createJumpList thus it's destroyed


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.