Results 1 to 10 of 10

Thread: Darken QPixmap

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2019
    Posts
    20
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Darken QPixmap

    Hello !

    I want to know is it possible to darken my images inside the Qt ( using a method ) or do i have to change the whole image with the darken one i made in Paint program?
    I use :

    Qt Code:
    1. Player::Player(QGraphicsPixmapItem *parent)
    2. {
    3. setPixmap(QPixmap(":/Images/PlayerMoveDownStill.png"));
    4.  
    5. }
    To copy to clipboard, switch view to plain text mode 

    I want something like this for example:
    darken.jpg
    Last edited by FlyDoodle; 18th September 2019 at 16:53.

Similar Threads

  1. Darken Widgets Behind a Dialog
    By johnsoga in forum Qt Programming
    Replies: 0
    Last Post: 23rd August 2010, 22:35
  2. How to not darken selected icons ?
    By Olivier Berten in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2010, 23:38
  3. Replies: 4
    Last Post: 28th August 2008, 14:13
  4. Replies: 1
    Last Post: 21st August 2008, 08:44
  5. Replies: 5
    Last Post: 9th April 2007, 15:26

Tags for this Thread

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.