Results 1 to 2 of 2

Thread: problem with image colections

  1. #1
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default problem with image colections

    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...
    Last edited by zlatko; 6th February 2006 at 13:24.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: problem with image colections

    Qt Code:
    1. QMimeSourceFactory::defaultFactory()->setFilePath(a.applicationDirPath() + "/images/");
    To copy to clipboard, switch view to plain text mode 

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

    ok thx all

Similar Threads

  1. Transfer image problem
    By probine in forum Qt Programming
    Replies: 7
    Last Post: 4th May 2006, 10:24
  2. problem with the back ground image
    By Seema Rao in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2006, 21:34
  3. Problem with bitBlt
    By yellowmat in forum Newbie
    Replies: 1
    Last Post: 5th April 2006, 14:08
  4. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.