Qt + i.MX53: Linear gradient not working satisfactorily

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Qt + i.MX53: Linear gradient not working satisfactorily

1,767 次查看
Rooney
Contributor III

Hello!

I'm running a Qt application on the i.MX53 + 10.1" LVDS display. For styling purpose I use a qlineargradient.

QTreeView {
    color: #F0F0F0;
    font-family: MS Shell Dlg 2;
    font-size: 14px;
    font-weight: bold;
    background-color: #B9B9B9;
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 #A9A9A9, stop: 1 #C9C9C9);
    border: 1px solid black;
    selection-background-color: transparent;
    border-image: none;
 }

Unfortunately the gradient steps are very distinctiv (see attachment). The second attachment shows the same content on a PC using 32bit graphic.

The LVDS display uses RGB666, so only 18bit is possible.

Is there a way to use qlineargradient that results in same appereance as on the PC? The application would look very simple, if gradients cannot be used.

Thanks für your help!!

Regards,

Rooney

标记 (1)
0 项奖励
回复
0 回复数