Results 1 to 3 of 3

Thread: runing from .exe and pictures

  1. #1
    Join Date
    Jan 2010
    Location
    Poland
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default runing from .exe and pictures

    I would like to send my program to friend who don't have qt creator. I've put the .exe file and the all the needed dll's to one folder, as I read, and it works but there is a little problem. After runing it I can't see the pictures which should be in the window. I put them in the code into the the lebel->pixmap (with path "../pic/name.jpg). I thought that i have to place the folder with pics into the debug folder, but it doesn't work. Any sugestions?

    PS. sorry for my english

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: runing from .exe and pictures

    They should be exactly where you expect to find them. So with "../pic/name.jpg" they should by in a directory called 'pic' and that directory should be in the same directory as the executable.

    (and this thread should really be in the 'newbies' forum, not this one, imo)

  3. #3
    Join Date
    Jan 2010
    Location
    Poland
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: runing from .exe and pictures

    I got it What a silly mistake I made Anyway thank you

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.