qpainter
Using an alpha transparent mask on a QWidget?
Is it possible to assign an alpha-transparent mask to a QWidget? I know how to set a mask using setMask but it seems it only supports black&white masks. Is it possible to make it support a true al[详细]
2023-04-09 00:04 分类:问答QPainter Cache Possible?
I\'ve Pie Shaped 开发者_如何学Cwidgets that needs extensive paintings. So I want to cache the QPainter Once it have been painted in paintEvent. and reuse it latter. Is there any direct or hacky way of[详细]
2023-04-03 23:55 分类:问答How to rotate a QPushButton?
I would like---with Python and Qt4---to rotate a QPushButton (or at least its text) so it can stand vertically. I\'ve seen some documentation online, but I couldn\'t make much sense out of it---it\'s[详细]
2023-04-03 03:08 分类:问答How to declare and instantiate a variable in Qt?
At first I want to apologize for this stupid question, but I\'m fairly new to Q开发者_如何学Pythont, so forgive me ;)[详细]
2023-03-31 18:49 分类:问答Render QWidget in paint() method of QWidgetDelegate for a QListView
i\'m having difficulties implementing custom widget rendering in a QListView. I currently have a QListView displaying my custom model called PlayQueue based on QAbstractListModel.[详细]
2023-03-14 17:55 分类:问答invalid conversion from ‘QEvent*’ to ‘QPaintEvent*’
trying to find if touch event occurs or else just paint them. bool MyWidget::event(QEvent *event) { switch (event->type())[详细]
2023-03-12 18:55 分类:问答How to access a variable from another class in Qt?
I am trying to implement in Qt a main window which has 2 widgets: one area where I draw some points and one list box where I write all the points with their respective coordinates. And I would like to[详细]
2023-03-11 12:46 分类:问答Some cells in QtableView are not repainted automatically after a clicking on a table cell
I\'m using a QTableView in the implementation of an interactive board game. Images are to be displayed in the cells of the table. I\'m using a QStyledItemDelegate with a paint function to draw the ima[详细]
2023-03-11 02:51 分类:问答how to send Qline coordinate to a QPainter Widget
I created a Qwidget, Form_temp, that draw lines based on an array of data created in the parent widget MainWindow. The issue I face is the data I send from the MainWindow to Form_temp via the slot sen[详细]
2023-03-09 08:53 分类:问答Using QtConcurrent to load a Pixmap and paint it
I\'m trying to create a Tile rendering program. Heres some basic code. Header class Tile: public QGraphicsItem[详细]
2023-03-05 01:33 分类:问答