Probleme am Mac, QIcon aus Plugin zu laden
Verfasst: 11. Februar 2010 19:52
Hallo,
ich habe mehrere plugins, wo ich auch pro plugin eine funktion habe, die mir das Icon des jeweiligen Plugins zurückliefert, Bsp.:
Wenn ich nun in der Hauptanwendung das plugin lade, stürzt das Programm mit folgender Fehlermeldung ab:
Das komische an der Sache ist, das es unter Linux und Windows einwandfrei funktioniert.
Kann mir jemand sagen wie ich das Problem beheben kann?
Vielen dank im Voraus
LG NoRulez
ich habe mehrere plugins, wo ich auch pro plugin eine funktion habe, die mir das Icon des jeweiligen Plugins zurückliefert, Bsp.:
Code: Alles auswählen
QIcon MyPlugin::icon() {
return QIcon(":/images/picture.png");
}
Code: Alles auswählen
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
Kann mir jemand sagen wie ich das Problem beheben kann?
Vielen dank im Voraus
LG NoRulez