Results 1 to 4 of 4

Thread: static compiled app, does not load image at runtime

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default static compiled app, does not load image at runtime

    hi
    i have compiled an application statically and it has to set its background with image which is present in the file system.

    this is done like this

    Qt Code:
    1. QPalette palette;
    2. QPixmap pixmap = QPixmap("./icon/slide1.jpg");
    3. palette.setBrush((this)->backgroundRole(), QBrush(pixmap));
    4. (this)->setPalette(palette);
    To copy to clipboard, switch view to plain text mode 

    but it does not work if the program is compiled statically.

    but the same program compiled dynamically (using dynamic libraries) works.

    i am sure that there is no problem with path in which images are present.

    do compiling statically requires any modification.
    Last edited by babu198649; 6th March 2008 at 11:29. Reason: misspelled

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.