Results 1 to 1 of 1

Thread: out of memory error [solved]

  1. #1
    Join Date
    Oct 2014
    Posts
    104
    Thanks
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default out of memory error [solved]

    hi,

    I am encountering problem of out of memory when compiling my application, i think this is due to many images that I added into resource file along with the qml files.

    I read somewhere that to resolve this we don't need to add the images into resource file, however i am having problem displaying the images.

    i have tried this

    Qt Code:
    1. view.rootContext()->setContextProperty("imagePath", "file://" + QCoreApplication::applicationDirPath() + "/images/");
    To copy to clipboard, switch view to plain text mode 
    and put the images where the executable file is located, but it didn't display the images still

    PS. I created a javascript function into singleton file which returns the path url

    Qt Code:
    1. function drawImage(name) {
    2. var url = imagePath + name;
    3. return url;
    4. }
    To copy to clipboard, switch view to plain text mode 

    Thanks

    ***
    it should have 3 forward slashes next to file:
    Last edited by joko; 28th October 2015 at 11:29.

Similar Threads

  1. SQLite Out of Memory error
    By LautaroMed in forum Newbie
    Replies: 2
    Last Post: 16th April 2013, 15:27
  2. moc crashes with out of memory error
    By FigBug in forum Qt Programming
    Replies: 0
    Last Post: 29th March 2012, 23:51
  3. Memory Error
    By spongebob in forum Qt Programming
    Replies: 2
    Last Post: 7th May 2010, 13:27
  4. QList: Out of Memory Error
    By ignoramous in forum Newbie
    Replies: 4
    Last Post: 18th May 2009, 09:34
  5. Memory error for Qlabel
    By Qt Coder in forum Qt Programming
    Replies: 14
    Last Post: 4th April 2009, 12:03

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
  •  
Qt is a trademark of The Qt Company.