Hi,
I’m adding a small QProgressbar to my app, but now I’m realizing that it is taking almost a core. I’ve read about some bugs related but I cant fix or workaround this issue. Any chances?
int main(int argc, char *argv[])
{
pruebasqt w;
QGraphicsDropShadowEffect* wndShadow = new QGraphicsDropShadowEffect;
wndShadow->setBlurRadius(9.0);
wndShadow
->setColor
(QColor(0,
0,
0,
90));
wndShadow->setOffset(5);
w.setGraphicsEffect(wndShadow);
w.setWindowFlags( Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
w.setAttribute(Qt::WA_TranslucentBackground);
w.setStyleSheet("QWidget{ background: red;}");
w.show();
return a.exec();
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
pruebasqt w;
QGraphicsDropShadowEffect* wndShadow = new QGraphicsDropShadowEffect;
wndShadow->setBlurRadius(9.0);
wndShadow->setColor(QColor(0, 0, 0, 90));
wndShadow->setOffset(5);
w.setGraphicsEffect(wndShadow);
w.setWindowFlags( Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
w.setAttribute(Qt::WA_TranslucentBackground);
w.setStyleSheet("QWidget{ background: red;}");
w.show();
return a.exec();
To copy to clipboard, switch view to plain text mode
}
Being “pruebasqt†a default QMainWindow with one QProgressBar. This makes 100% of one core in my computer (An Intel Xeon with 8 cores and 26 Gb RAM)
-QT 4.8.4
-Windows 7
Bookmarks