Results 1 to 4 of 4

Thread: How to implement a ListBox with background image

  1. #1
    Join Date
    Mar 2006
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Exclamation QPE 2.2: How to implement a ListBox with background image

    Hello,

    My environment is QPE 2.2. And it's a hurry issue.
    In an individual APP, I have to create a Listbox with a background image on its items' back.
    I have tried to do it by using QPallete, and setting its QColorgroup::Base as a Pixmap.

    Although it seems look right at first, it still not what I need.
    By this way, the background will be painted overlap when moving the highlight bar exceeding the screen range.

    I need a listbox with background image that the background shows always normal.

    Thanks in advance.

    Below image shows my requirement. A List with background image.
    andyyeh has attached this image (reduced version):
    Attached Images Attached Images
    Last edited by andyyeh75; 7th March 2006 at 12:18.

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: How to implement a ListBox with background image

    What version of qt are you use?
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Mar 2006
    Posts
    2
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How to implement a ListBox with background image

    my Qt version is 3.3.5
    QTE version 2.3.12
    QPE version 2.2.1

  4. #4
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: How to implement a ListBox with background image

    for Qt 3.3.5 try setPaletteBackgroundPixmap()
    a life without programming is like an empty bottle

Similar Threads

  1. Replies: 3
    Last Post: 18th May 2012, 10:12
  2. How to stretch background image used in brush-palette
    By Hookem in forum Qt Programming
    Replies: 5
    Last Post: 24th December 2008, 17:03
  3. Setting background image of QFrame
    By Claymore in forum Qt Programming
    Replies: 2
    Last Post: 12th February 2007, 19:50
  4. background image in QTreeView
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2007, 06:25
  5. [QT4.1.1 XP] background image
    By incapacitant in forum Newbie
    Replies: 3
    Last Post: 1st March 2006, 13: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.