Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt5.6 application : red and blue colors swapped
QtWS25 Last Chance

Qt5.6 application : red and blue colors swapped

Scheduled Pinned Locked Moved Mobile and Embedded
qt5.6qtwebkitcolor changeframebuffercolor depth
2 Posts 2 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    florin
    wrote on last edited by
    #1

    Hello,

    I recently compiled qt5.6 with the configuration bellow. I am having a simple application that is using qtwebkit to display an url page on a lcd display. The webpages displayed have red and blue colors swapped. The qt engine is using the linux framebuffer.
    If I set the number of bits per pixel to 16, the webpages are properly displayed.
    echo 16 > /sys/class/graphics/fb0/bits_per_pixel

    The number of bits per pixel by default is 24 and I would like to use this value instead of 16.
    I have also attached the framebuffer information bellow.

    qt 5.6 configuration options
    ./configure -v -opensource -arch arm -opengl es2 -egl -no-fontconfig -confirm-license -debug -verbose -device imx6 -device-option CROSS_COMPILE=arm-linux-gnu- -sysroot /home/fmaticu/sysroot -optimized-qmake -reduce-exports -gstreamer 1.0

    Frame buffer information
    mode "1920x1080-60"
    # D: 148.500 MHz, H: 67.500 kHz, V: 60.000 Hz
    geometry 1920 1080 1920 2160 24
    timings 6734 148 88 36 4 44 5
    hsync high
    vsync high
    rgba 8/16,8/8,8/0,0/0
    endmode

    Frame buffer device information:
    Name : DISP3 BG
    Address : 0x29400000
    Size : 12441600
    Type : PACKED PIXELS
    Visual : TRUECOLOR
    XPanStep : 1
    YPanStep : 1
    YWrapStep : 1
    LineLength : 5760
    Accelerator : No

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Since you are using an unreleased version of Qt and hitting something that's probably influenced by the internals of Qt. I'd recommend posting your question on the interest mailing list You'll find there Qt's developers/maintainers (this forum is more user oriented)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved