Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Coloring widgets on Qt

Hi,

Has anybody tried coloring widgets on Qt? I'm trying to do that without success.
The code below:

Color color = new Color(new RGB(255, 0, 0));
Label label = new Label(shell, SWT.NONE);
label.setText("Testing");
label.setBackground(color);

Runs, but does not color anything.

Any ideas?

Thank you


Back to the top