I'm using QTDesigner 5.15.8 and trying to color buttons.

color.png

I have inserted one button and frame on my mainwindow. Here is the stylesheet code of mainwindow

Qt Code:
  1. background-color: red;
  2. }
  3. background-color: red;
  4. }
To copy to clipboard, switch view to plain text mode 

They are same but as you see they look different.

I couldnt find why it happened but it happens even if I created a new project...