Skip to content

Instantly share code, notes, and snippets.

View xyz1001's full-sized avatar

xyz1001 xyz1001

View GitHub Profile
@xyz1001
xyz1001 / input_box.cpp
Last active October 29, 2018 03:24
自定义光标颜色的QLineEdit
/*
* -*- coding: uft-8 -*-
*/
#include "input_box.h"
#include <QPainter>
InputBox::InputBox(QWidget *parent) : QLineEdit(parent) {
setReadOnly(true);