PDA

View Full Version : problem with image colections



zlatko
6th February 2006, 12:13
I have project image collection. Then i add IconSet to 2 butons form this image colection.
But after compile i havent see pixmap on buttons and have next debug message



QPixmap::fromMimeSource: Cannot find pixmap "OWLSOCK.xpm" in the mime source fac
tory
QPixmap::fromMimeSource: Cannot find pixmap "cancel.xpm" in the mime source fact
ory


in my project file i have next



TEMPLATE = app
LANGUAGE = C++

CONFIG += qt warn_on

FORMS = frmaboutbase.ui \
frmupconbase.ui

IMAGES = images/add.png \
images/cancel.xpm \
images/OWLSOCK.xpm \
images/WitchBroom.xpm

# ----------------------------------------------------------
# Project generated by QMsNet v1.0.0
# Template used: Basic Application
# Template version: 1.1
# ----------------------------------------------------------

TARGET = vk

unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
}



hm...QMimeSourceFactory::defaultFactory()->filePath() return me empty list. Should i create own QMimeSourceFactory....but i dont think that i need that...

zlatko
6th February 2006, 14:43
QMimeSourceFactory::defaultFactory()->setFilePath(a.applicationDirPath() + "/images/");


strange solving becouse i think if defaultFactory available by default :) it must have some default path... for example app dir path:rolleyes:

ok thx all :D