hi friends,
how can i add a QSlider with groove as transparent but not the handle and add the widget as a QGraphicsProxyWidget i tried like this ..
theSlider->setStyleSheet("QSlider::groove:horizontal {background-color: rgba(255, 255, 255, 50);} QSlider::handle:horizontal {background: black;};");
QGraphicsProxyWidget *sliderItem = new QGraphicsProxyWidget(this);
// sliderItem->setOpacity(0.3);
sliderItem->setWidget(theSlider);
theSlider->setStyleSheet("QSlider::groove:horizontal {background-color: rgba(255, 255, 255, 50);} QSlider::handle:horizontal {background: black;};");
QGraphicsProxyWidget *sliderItem = new QGraphicsProxyWidget(this);
// sliderItem->setOpacity(0.3);
sliderItem->setWidget(theSlider);
To copy to clipboard, switch view to plain text mode
if i enable opacity its showing transparent slider but handle also looks transparent .
if i make background-color : transparent .. it is looking like a white box ...
how to make the widget transparent in qgraphicsproxywidget ..
please help me ..
Bookmarks