Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/p/y/pyqt5-HEAD/examples/tools/settingseditor/settingseditor.py   pyqt5(Download)
        QRegExp, QSettings, QSize, Qt, QTime, QTimer)
from PyQt5.QtGui import QColor, QIcon, QRegExpValidator, QValidator
from PyQt5.QtWidgets import (QAbstractItemView, QAction, QApplication,
        QComboBox, QDialog, QDialogButtonBox, QFileDialog, QGridLayout,
        QGroupBox, QHeaderView, QInputDialog, QItemDelegate, QLabel, QLineEdit,
    def paint(self, painter, option, index):
        if index.column() == 2:
            value = index.model().data(index, Qt.UserRole)
            if not self.isSupportedType(value):
                myOption = QStyleOptionViewItem(option)

src/p/y/pyqt5-HEAD/examples/itemviews/pixelator/pixelator.py   pyqt5(Download)
from PyQt5.QtGui import QBrush, qGray, QImage, QPainter
from PyQt5.QtPrintSupport import QPrinter
from PyQt5.QtWidgets import (QAbstractItemDelegate, QApplication, QDialog,
        QFileDialog, QHBoxLayout, QLabel, QMainWindow, QMessageBox, QMenu,
        QProgressDialog, QSpinBox, QStyle, QStyleOptionViewItem, QTableView,
        painter.translate(-sourceWidth/2, -sourceHeight/2)
 
        option = QStyleOptionViewItem()
        parent = QModelIndex()
 

src/d/u/dupeguru-HEAD/qt/base/directories_model.py   dupeguru(Download)
 
from PyQt5.QtCore import pyqtSignal, Qt, QRect, QUrl, QModelIndex, QItemSelection
from PyQt5.QtWidgets import (QComboBox, QStyledItemDelegate, QStyle, QStyleOptionComboBox,
    QStyleOptionViewItem, QApplication)
from PyQt5.QtGui import QBrush
    def paint(self, painter, option, index):
        self.initStyleOption(option, index)
        # No idea why, but this cast is required if we want to have access to the V4 valuess
        option = QStyleOptionViewItem(option)
        if (index.column() == 1) and (option.state & QStyle.State_Selected):