set icon for menu,error

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

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files, scripts and screenshots.

Post one question per topic.

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 4122 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 Programming, Script Programming and Contributing”