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
    Qt products

    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"));
    5. }
    To copy to clipboard, switch view to plain text mode 

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

Similar Threads

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

Tags for this Thread


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.