set icon for menu,error

Discussion forum for contributors and developers who are using the QCAD ECMAScript development platform or the C++ plugin interface or who are otherwise looking to contribute to QCAD (translations, documentation, etc).

Moderator: andrew

Post Reply
liguosheng
Active Member
Posts: 33
Joined: Thu Jan 14, 2016 4:17 am

set icon for menu,error

Post by liguosheng » Fri Jan 22, 2016 2:03 pm

newAct = new RGuiAction(tr("NewFile","&New"),this);
newAct->setRequiresDocument(false);
QString strIcon = tr("../Icon/NewFile.svg");
newGui->setIcon(strIcon);

there's no error when compiling, but linking, an unhandled exception happen, why?
Attachments
exception.png
exception.png (163.31 KiB) Viewed 2296 times

liguosheng
Active Member
Posts: 33
Joined: Thu Jan 14, 2016 4:17 am

Re: set icon for menu,error

Post by liguosheng » Mon Jan 25, 2016 12:37 pm

problem is solved. variable is used by error.

Post Reply

Return to “QCAD Developers and Contributors”