Results 1 to 7 of 7

Thread: QPixmap not displayed on windows / no proble on Linx -> Qt Bug or not?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Posts
    3
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default QPixmap not displayed on windows / no problem on Linux -> Qt Bug or not?

    Hi,
    I am displaying images in a scrollview. I also have scaling functionality that works without problems on linux. When I do the same on windows the image won't be displayed when the size exceeds approximately 3000x30000 pixels. Is there a problem with Qt or am I doing something wrong?
    Qt Code:
    1. //
    2. //this code is inside a class that subclasses QScrollView
    3. //
    4. QVBox *box = new QVBox(viewport());
    5. addChild(box);
    6.  
    7. ...
    8.  
    9. imgLabel_ = new QLabel(box);
    10. isOk = pixMapScaled_.convertFromImage(
    11. image_.scale(static_cast<int>(image_.width()*scaleFactor_),
    12. static_cast<int>(image_.height()*scaleFactor_)),
    13. conversion_flags_);
    14.  
    15. if (isOk)
    16. imgLabel_->setPixmap(pixMapScaled_);
    17. else
    18. logger_.error("Could not convert image.");
    To copy to clipboard, switch view to plain text mode 

    The scaling and conversion seems to happen without any errors. The image is just not displayed on windows when it gets bigger than 3000x3000 pixels. When scaling out again it will be displayed again.
    Thanks, for any help,
    Guido
    Last edited by ali99; 5th April 2006 at 13:05.

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.