- 博客(7)
- 资源 (2)
- 收藏
- 关注
button
void ButtonCell::paintEvent(QPaintEvent* e) { #undef MARGIN #define MARGIN 2 #define DIVISION 0.7 QRect rectItem = this->rect();// .rect; QRect border = QRect(rectItem.left()+MARGIN,
2014-10-18 15:39:21 79
myButton::paintEvent
void myButton::paintEvent(QPaintEvent *e) { QToolButton::paintEvent(e); QPainter painter(this); QPen pen; pen.setColor(mRectColor); // painter.setPen(pen); //选择画笔 Q
2014-10-11 16:46:50 96
QComboBox
QComboBox { border: 0px; background: white; } QComboBox:editable { background: white; } QComboBox::drop-down { width:40px; background:#ff9500; } QCom
2014-06-25 13:20:49 65
原创 listVie样式表之垂直滚动条
QListView::listView_sub{ background-color: rgb(255, 255, 255); } QScrollBar::vertical { border:0px solid red; width: 40px; background:white; }
2014-06-20 08:19:13 96
转载 fopen(打开文件)
fopen(打开文件) 相关函数 open,fclose 表头文件 #include 定义函数 FILE * fopen(const char * path,const char * mode); 函数说明 参数path字符串包含欲打开的文件路径及文件名,参数mode字符串则代表着流形态。 mode有下列几种形态字符串: r 打开只读文件,该文件必须存在。 r+ 打开可读写的文件,该
2014-06-13 20:54:21 106
转载 两个qml组件之间的通信
A.qml: Item{ id:_a width:200 height:200 color:"red" function showB(){ var component = Qt.createComponent("B.qml"); if (component.status == Component.Ready) { v
2013-12-16 13:43:46 450
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人