Results 1 to 2 of 2

Thread: Painting data always as 16-bit color

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Painting data always as 16-bit color

    Hello!

    I'm developing an interface application for embedded Linux where the screen system is a 16-bit color system (5-6-5). In order to prevent unnecessary processing consumption, I need to guarantee that the Qt interface only draws on the screen using 5-6-5 color system (if it tries to do otherwise, the system will have to convert it to its 5-6-5 definition, consuming processing to do this).

    How do I configure this?

    I did manage to find how to guarantee that QPixmaps will be shown in 16-bit colors:

    Qt Code:
    1. QPixmap::fromImage(QPixmap(file_name).toImage().convertToFormat(QImage::Format_RGB16))
    To copy to clipboard, switch view to plain text mode 

    but that don't include the general drawings, such as when a QWidget is shown or when some QwtPlotCurve s are drawn in a QwtPlot.

    So how can I configure this at a "global scope"?


    Thanks,

    Momergil
    May the Lord be with you. Always.

  2. #2
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Painting data always as 16-bit color

    No comments?
    May the Lord be with you. Always.

Similar Threads

  1. Replies: 3
    Last Post: 3rd February 2014, 17:04
  2. Replies: 0
    Last Post: 3rd July 2013, 18:51
  3. Replies: 0
    Last Post: 3rd February 2012, 02:05
  4. Replies: 3
    Last Post: 22nd January 2010, 16:46
  5. Data displayed via color map
    By bitChanger in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2006, 19:27

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.