QLinearGradient grad1
( 0,
0, width
(),
0 );
// distribute colors over width of widget QLinearGradient grad1
( 0,
0,
0, height
() );
// distribute colors over height of widget QLinearGradient grad1
( 0,
0, width
(), height
() );
// distribute colors over width and height of widget, diagonally
QLinearGradient grad1( 0, 0, width(), 0 ); // distribute colors over width of widget
QLinearGradient grad1( 0, 0, 0, height() ); // distribute colors over height of widget
QLinearGradient grad1( 0, 0, width(), height() ); // distribute colors over width and height of widget, diagonally
To copy to clipboard, switch view to plain text mode
Bookmarks