Results 1 to 5 of 5

Thread: transparent splash

  1. #1
    Join Date
    Apr 2010
    Location
    Sudan
    Posts
    46
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default transparent splash

    hi everyone ..

    i used an image to a splash .. the image have a transparent area .. but on splash show the transparent area is filled with default background color .. is there any way that i can make it transparent ?
    Last edited by tinysoft; 13th May 2011 at 09:55.

  2. #2
    Join Date
    Sep 2009
    Location
    Finland
    Posts
    63
    Thanks
    1
    Thanked 22 Times in 19 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: transparent splash

    Please take a look at this, maybe it will work for you also.

  3. The following user says thank you to tsp for this useful post:

    tinysoft (13th May 2011)

  4. #3
    Join Date
    Apr 2010
    Location
    Sudan
    Posts
    46
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: transparent splash

    thank you ..

    i tried it and it worked fine ...just as i wanted .

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: transparent splash

    Set the Qt::WA_TranslucentBackground attribute on the window.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #5
    Join Date
    Apr 2010
    Location
    Sudan
    Posts
    46
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: transparent splash

    Quote Originally Posted by wysota View Post
    Set the Qt::WA_TranslucentBackground attribute on the window.
    i tried this one on but it gives me a black screen allover the splash area.

    Qt Code:
    1. splash->setAttribute(Qt::WA_TranslucentBackground,1);
    To copy to clipboard, switch view to plain text mode 

    but this one already worked fine with me.

    thank you for your support

Similar Threads

  1. Replies: 0
    Last Post: 25th August 2010, 17:39
  2. Replies: 2
    Last Post: 31st May 2010, 11:57
  3. Non-transparent QWidget on semi-transparent parent
    By EuroElessar in forum Qt Programming
    Replies: 0
    Last Post: 29th August 2008, 16:20
  4. Transparent background on QLabel on transparent QWidget
    By codeslicer in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2008, 02:10
  5. Replies: 3
    Last Post: 8th December 2006, 18:51

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.