I want to create a QColor,I find that QColorcan be created by
Qt Code:
  1. QColor(int r,int g,int b,int a=255)
To copy to clipboard, switch view to plain text mode 
or by
Qt Code:
  1. QColor(QRgb color)
To copy to clipboard, switch view to plain text mode 
,Now I have two questions:
1.if the value of r,g,b is between 0 and 1,how to convert to int? because
Qt Code:
  1. QColor(int r,int g,int b,int a=255)
To copy to clipboard, switch view to plain text mode 
need int parameter?
2.If I use
Qt Code:
  1. QColor(QRgb color)
To copy to clipboard, switch view to plain text mode 
to create a color,how to convert (0,1) to tpye QRgb?
Thk u.