Results 1 to 4 of 4

Thread: my first qt application, everythings ok, but background image get nothing. help me!!!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: my first qt application, everythings ok, but background image get nothing. help m

    Hi,

    what is
    Qt Code:
    1. qWarning() << p.load("demo.jpg");
    2. qWarning() << p.isNull();
    To copy to clipboard, switch view to plain text mode 
    telling you? I bet your path is wrong. As a solution use Qt's resource system to embed the image to your application or use a valid path...

  2. The following user says thank you to Lykurg for this useful post:

    mackluo (24th December 2011)

Similar Threads

  1. Replies: 0
    Last Post: 5th April 2011, 14:36
  2. Replies: 1
    Last Post: 25th June 2010, 19:31
  3. Background image in an application
    By halvors in forum Qt Programming
    Replies: 1
    Last Post: 1st April 2010, 12:27
  4. No Background Image on Example
    By igor in forum Qt Programming
    Replies: 3
    Last Post: 19th January 2007, 13:41
  5. [QT4.1.1 XP] background image
    By incapacitant in forum Newbie
    Replies: 3
    Last Post: 1st March 2006, 14:02

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.