×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    32

    Question Make the background of QListWidget transparent

    Hi All,

    How can i make the background of QListWidget and QListWidgetItem transparent on N900.

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Make the background of QListWidget transparent

    I didn't get your question. Are you talking about QWidget::setWindowOpacity()? (What is connection to Maemo then?)

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    32

    Re: Make the background of QListWidget transparent

    I used QWidget::setStyleSheet("background-color:transparent"), then QListWidget became transparent but when i install the application on the phone, the list item became black with white text (the style of native maemo list).

    I also used QListWidgetItem::setBackgroundColor(Qt::transparent) for each list item but it dos not work.

    Also QWidget::setWindowOpacity(0.0) have no effect.

    thank you

  4. #4
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Make the background of QListWidget transparent

    Black background for QListWidgetItems is Maemo style. Verify with setting "motif" style.
    http://qt.nokia.com/doc/4.6/qapplica...tml#setStyle-2

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    32

    Re: Make the background of QListWidget transparent

    Hi all,

    Thanks alot Daniil.

    It is exactly what i want, I used QWidget::setStyle(new QMotifStyle( )) to apply motif style on QListWidget only.

    Thank you again.

  6. #6
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Make the background of QListWidget transparent

    But note, you are making an application, which is deviating from Maemo style.

Similar Threads

  1. CAknVolumeControl with transparent background
    By adamlah in forum Symbian
    Replies: 1
    Last Post: 2010-07-23, 14:26
  2. how to make cba transparent
    By krushived in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-04-28, 14:07
  3. CEikRichTextEditor and transparent background
    By piotr_kacprzak in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-01-16, 13:04
  4. How to make a program run in background
    By xhsoldier in forum Symbian
    Replies: 7
    Last Post: 2008-08-28, 07:44
  5. Debug launched file
    By robUx4 in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2007-10-18, 12:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •