qpainter
Use window/viewport to flip QPainter y-axis
I\'m using Qt 4.7 QPainter to draw some polygons, etc into a widget. I am hoping to alter the coordinate system so that (0,0) is at the center of my widget, and the x/y axis behave in a standard \"Car[详细]
2023-01-30 05:00 分类:问答Creating QGradient
Right now I am just trying to create a circle with a gradient fill: //I want the center to be at 10, 10 in the circle and the radius to 开发者_如何学Pythonbe 50 pixels[详细]
2023-01-28 04:20 分类:问答Using QPainter over OpenGL in QGLWidget when using shaders
Many of you Qt (4.6 specifically) users will be familiar with the Overpainting example supplied in the OpenGL tutorials, I\'m trying to do something very similar but using shaders for the pure OpenGL[详细]
2023-01-27 11:07 分类:问答qpainterpath.addtext ignores qfont weight
Using Qt 4.7.0, we need some text to display part way between normal and bold.Here\'s what we\'re doing:[详细]
2023-01-27 03:29 分类:问答How to make a QImage or QPixmap semi-transparent - or why is setAlphaChannel obsolete?
4.7 and like to overlay two images on a qgraphicsview. The image on top shall be semi-transparent to allow to see through it. Initially both images are fully opaque. I expected some function for setti[详细]
2023-01-24 17:38 分类:问答Draw with QPainter
I need draw with QPainter, but when I try to do it not in void paintEvent( QPaintEvent* ) I catch error:[详细]
2023-01-21 06:25 分类:问答Coordinate scaling causes too large font sizes in QPainter::drawText
I\'m working on simple 2D visualization module for MD simulat开发者_如何转开发ion code. What I\'m trying to do is drawing positions of simulated molecules using:[详细]
2023-01-20 14:58 分类:问答How to draw an ellipse/circle over QGraphicsScene in a QGraphicsView
I have a QGraphicsView with a QGraphicsScene. That QGraphicsScene contains a QPixmap. It is possible to drag the scene. On top of that scene I have a HUD with QLabels, QPushButtons and other stuff. Wh[详细]
2023-01-16 02:03 分类:问答QT c++ draw point qpainter qgraphicscene
Hell-o all, Im new to qt and I am having trouble drawing one single point. I have a big qMainWindow that eventually calls a QgraphicsScene and inside of it I need to draw a single point, one little p[详细]
2023-01-15 03:26 分类:问答draw in a QFrame on clicking a button.
Say there is a QPushButton named \"Draw\", a QLineEdit and a QFrame. On clicking the button I want to take a number from QLineEdit and draw a circle in a QFrame. How can I do this? Please provide me w[详细]
2023-01-08 04:46 分类:问答
加载中,请稍侯......