Qt drawing a filled rounded rectangle with border

You can create a QPainterPath, add the rounded rect to it, and then fill and stroke it: QPainter p(this); p.setRenderHint(QPainter::Antialiasing); QPainterPath path; path.addRoundedRect(QRectF(10, 10, 100, 50), 10, 10); QPen pen(Qt::black, 10); p.setPen(pen); p.fillPath(path, Qt::red); p.drawPath(path); Note that even with antialiasing, 1 px border will probably never really look good, especially on a low DPI desktop … Read more

Efficient off-screen rendering of QPainterPaths (OpenGL and non-OpenGL solution required)

The document of Qt-interest Archive, August 2008 QGLContext::create() says: A QGLContext can only be created with a valid GL paint device, which means it needs to be bound to either a QGLWidget, QGLPixelBuffer or QPixmap when you create it. If you use a QPixmap it will give you software-only rendering, and you don’t want that. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)