Results 1 to 7 of 7

Thread: Question about thumbnailing different kinds of images

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Question about thumbnailing different kinds of images

    Hi again, I comment with some more details the process of the thumbnailing: the images that I have to thumbnail are the results of a process that I have made previously on each image. For each image, the process has saved information about its result. I want to separate the thumbnailed images in different windows since the result of the process (not using the format of the image as I commented in previous threads, sorry). I have 6 windows in the tab widget corresponding to 6 possible types of result of the process. Firstly what I make is read all the images in a selected directory and adding an item in the QListWidget of the window assigned to the result of the process. I have thought that everytime that a new item is added to a list, I insert this new image in the list of the pending images that the thread assigned to the list will read to generate the thumbnails. So, I need a thread for each list widget. Totally, 6 threads. the problem is that all the threads could be running at the same time, each of one working with QImages that could be large. My question is that if is possible that in any moment could be 6 images loaded in memory? and in this case could this make crash the applicattion for consuming too much memory? Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Thanks
    44
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Question about thumbnailing different kinds of images

    Can anybody tell me if what I've comented in the previous post is possible or if it should be better to do it all with only one thread that manages the thumbnailing of the images of all the windows in the tab?

    Thanks.
    Last edited by SkripT; 18th March 2006 at 09:46.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Question about thumbnailing different kinds of images

    If you have 6 CPUs in your machine, use 6 threads. Otherwise use only one.

  4. The following user says thank you to jacek for this useful post:

    SkripT (18th March 2006)

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.