NoRulez
11th February 2010, 20:11
Hi,
i have several plugins where i call a function to retrieve the plugins icon, for example:
QIcon MyPlugin::icon() {
return QIcon(":/images/picture.png");
}
When i load the plugin in the main application i still get an error:
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x9020e732 __kill + 10
1 libSystem.B.dylib 0x9020e724 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x902a198d raise + 26
3 libSystem.B.dylib 0x902b7a44 abort + 93
4 QtCore 0x021c79d5 qt_message_output(QtMsgType, char const*) + 149
5 QtCore 0x021c7b9a qt_message(QtMsgType, char const*, char*) + 186
6 QtCore 0x021c7cd9 qFatal(char const*, ...) + 25
7 QtGui 0x0173bc8e qt_pixmap_thread_test() + 94
8 QtGui 0x0173c747 QPixmap::QPixmap() + 55
9 QtGui 0x0170f7e5 QPixmapIconEngine::addFile(QString const&, QSize const&, QIcon::Mode, QIcon::State) + 69
10 QtGui 0x0171013a QIcon::addFile(QString const&, QSize const&, QIcon::Mode, QIcon::State) + 90
11 QtGui 0x01710373 QIcon::QIcon(QString const&) + 67
12 MyPlugin.dylib 0x1475bd00 Plugins::MyProject::Formulas::MyPlugin::icon() const + 64
The funny thing is that it works fine under Linux and Windows.
Could anybody say me what on Mac is going wrong?
Thanks in advance
Best Regards
NoRulez
i have several plugins where i call a function to retrieve the plugins icon, for example:
QIcon MyPlugin::icon() {
return QIcon(":/images/picture.png");
}
When i load the plugin in the main application i still get an error:
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x9020e732 __kill + 10
1 libSystem.B.dylib 0x9020e724 kill$UNIX2003 + 32
2 libSystem.B.dylib 0x902a198d raise + 26
3 libSystem.B.dylib 0x902b7a44 abort + 93
4 QtCore 0x021c79d5 qt_message_output(QtMsgType, char const*) + 149
5 QtCore 0x021c7b9a qt_message(QtMsgType, char const*, char*) + 186
6 QtCore 0x021c7cd9 qFatal(char const*, ...) + 25
7 QtGui 0x0173bc8e qt_pixmap_thread_test() + 94
8 QtGui 0x0173c747 QPixmap::QPixmap() + 55
9 QtGui 0x0170f7e5 QPixmapIconEngine::addFile(QString const&, QSize const&, QIcon::Mode, QIcon::State) + 69
10 QtGui 0x0171013a QIcon::addFile(QString const&, QSize const&, QIcon::Mode, QIcon::State) + 90
11 QtGui 0x01710373 QIcon::QIcon(QString const&) + 67
12 MyPlugin.dylib 0x1475bd00 Plugins::MyProject::Formulas::MyPlugin::icon() const + 64
The funny thing is that it works fine under Linux and Windows.
Could anybody say me what on Mac is going wrong?
Thanks in advance
Best Regards
NoRulez