Results 1 to 6 of 6

Thread: QPixmap and QGridLayout

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QPixmap and QGridLayout

    This code works great, but only when I try to debug it with GDB... If I don't use it, the label stay black... How can make it work without GDB?

    (Thanks for your fast replies)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QPixmap and QGridLayout

    Do you run it from the same directory where your image file resides? What happens if you change the image path to an absolute one (starting from /).

  3. #3
    Join Date
    Feb 2006
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QPixmap and QGridLayout

    It works! I've change the path to a absoute path, and it works perfectly... Thanks, you saved my life!

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.