[gelöst]Icons werden in Linux nicht geladen?!

Alles rund um die Programmierung mit Qt
Antworten
Spielgrips
Beiträge: 51
Registriert: 8. März 2006 23:09
Kontaktdaten:

[gelöst]Icons werden in Linux nicht geladen?!

Beitrag von Spielgrips »

Hallo,

ich habe mit der aktuellen QT4 Version mein Projekt kompiliert und die Funktionalität ist da.

Nur wo sind meine Icons? In Windows funktioniert das alles super!

Z.B. ein QAction Objekt mit Icon was in Windows angezeigt wird aber in Linux merkwürdig nicht :/!

Code: Alles auswählen

actHost = new QAction(QIcon("./host.png"), tr("Daten aedern"), this);
             actHost->setShortcut(tr("Ctrl+D"));
             actHost->setStatusTip(tr("Host - Daten aedern fuer DynDNS"));
             connect(actHost, SIGNAL(triggered()), this, SLOT(actHostFunc()));
Ich hab mal den Pfad mal auf Linux Basis gesetzt also das Bild im Ordner gesucht wird mit ./bild.png ... Mit reinen bild.png geht in Windows auch prima aber in Linux weder och nicht!

Ich frag mich woran das liegt? Oder sollte ich das Qt4 nochmal kompilieren?
Zuletzt geändert von Spielgrips am 16. April 2006 23:25, insgesamt 1-mal geändert.
Spielgrips
Beiträge: 51
Registriert: 8. März 2006 23:09
Kontaktdaten:

Beitrag von Spielgrips »

Ich habe mal ./configure usage ausgeführt und sagt:
Configuration ....... build_all debug shared dll largefile stl sse qt3support accessibility minimal-config small-config medium-config large-config full-config ipv6 getaddrinfo ipv6ifname png no-gif zlib compat-libdl nis x11sm xshape xinerama xcursor xrandr xrender fontconfig tablet xkb release debug
Debug................ yes (combined)
Default Link......... debug
Qt3 compatibility.... yes
STL support ......... yes
PCH support ......... no
MMX/SSE support ..... yes
IPv6 support ........ yes
IPv6 ifname support . yes
getaddrinfo support . yes
Accessibility ....... yes
NIS support ......... yes
CUPS support ........ no
Large File support .. yes
GIF support ......... no
JPEG support ........ plugin (qt)
PNG support ......... yes (qt)
MNG support ......... plugin (qt)
zlib support ........ yes
OpenGL support ...... no
NAS sound support ... no
Session management .. yes
XShape support ...... yes
Xinerama support .... yes
Xcursor support ..... yes
Xrandr support ...... yes
Xrender support ..... yes
FontConfig support .. yes
XKB Support ......... yes
immodule support .... yes
OCI support .........
TDS support .........
DB2 support .........
SQLite support ...... plugin
.png wird ja unterstützt nach checklist :)! Aber es wird nicht angezeigt :(!
Spielgrips
Beiträge: 51
Registriert: 8. März 2006 23:09
Kontaktdaten:

Beitrag von Spielgrips »

Habs rausbekommen warum keine Icons angezeigt wird und zwar muss man in Linux das per .qrc Resource Datei einbinden was sehr gut in der Doc beschrieben ist!
Shadow
Beiträge: 92
Registriert: 27. August 2005 18:15
Wohnort: Iserlohn
Kontaktdaten:

Beitrag von Shadow »

Spielgrips hat geschrieben:Habs rausbekommen warum keine Icons angezeigt wird und zwar muss man in Linux das per .qrc Resource Datei einbinden was sehr gut in der Doc beschrieben ist!
Oder Du umgehst das Ganze, indem du XPM-Dateien als Header-Files verwendest, die Dir direkt zur Entwicklungszeit als char*-Array zur Verfügung gestellt und anschließend direkt mit dem Programm einkompiliert werden.
Antworten