×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    56

    How to make a transparent interface in mobile phone?

    I try my best,but anyway it's doesn't work.

    I want to make a transparent QWidget,it doesn't have parent.
    it's on the top of the screen. half size of screen.

    I use QWidget::setWindowOpacity(0.9);
    But the result is---- the other interfaces under this widget disappear.instead,there is a black background under this widget.
    And this widget doesn't transparent .

    Then I use setAttribute(Qt::WA_TranslucentBackground, false);
    The result is the same.

    Then I use

    QPalette pal = palette();
    pal.setColor(QPalette::Background, QColor(255,0,0,x));
    setPalette(pal);

    The result is the same.

    But!!!
    on the simulator.
    QWidget::setWindowOpacity(0.9);
    it works perfectly.

    setAttribute(Qt::WA_TranslucentBackground, false);
    and
    QPalette pal = palette();
    pal.setColor(QPalette::Background, QColor(255,0,0,x));
    setPalette(pal);

    Both will make the whole interface transparent completely. the desktop show through the simulator.

  2. #2
    Regular Contributor
    Join Date
    Aug 2010
    Posts
    50

    Re: How to make a transparent interface in mobile phone?

    hello, I meet the same question as you referred. And I also tried to set the stylesheet "background-image ", and it doesn't effected too.
    So If you resloved your problem, please give me some suggestion.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    56

    Re: How to make a transparent interface in mobile phone?

    No one knows?

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to make a transparent interface in mobile phone?

    Why do you set TranslucentBackground off?

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    56

    Re: How to make a transparent interface in mobile phone?

    Quote Originally Posted by danhicksbyron View Post
    Why do you set TranslucentBackground off?
    setAttribute(Qt::WA_TranslucentBackground, true);
    doesn't work,too.

  6. #6
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How to make a transparent interface in mobile phone?


Similar Threads

  1. Replies: 6
    Last Post: 2009-11-29, 06:10
  2. Replies: 9
    Last Post: 2009-10-08, 11:54
  3. how to make Interface between pic and cell phone?
    By aboalghadb in forum General Messaging
    Replies: 1
    Last Post: 2008-08-06, 09:35
  4. How to make background transparent?
    By oslario in forum Symbian User Interface
    Replies: 1
    Last Post: 2005-08-04, 07:56
  5. how to make transparent graphics
    By chizuoka in forum Mobile Java General
    Replies: 3
    Last Post: 2003-04-24, 09:36

Posting Permissions

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