- 博客(8)
- 收藏
- 关注
转载 【转】Qt绘制坐标轴
=====================================Widget.h=====================================#ifndef WIDGET_H#define WIDGET_H #include namespace Ui { class Widget;} class Widget : publi
2010-01-13 18:22:00
6859
1
转载 [转]Qt:自动完成的QLineEdit(非使用QCompleter版)
-------------------------------------CompleteLineEdit.h-------------------------------------#ifndef COMPLETELINEEDIT_H#define COMPLETELINEEDIT_H#include #include class QListView;
2010-01-13 17:59:00
3302
原创 自定义Qt按钮
Qt自带的PushButton样式比较单一,在开发的时候往往按钮的形状各异,所以需要自定义Qt的按钮。其方法是做一张图片来作为按钮,如果需要动态效果的话,可以做两张图片进行替换。按钮的载体可以是QLabel、QPushButton,可以通过QStyle类来设计样式,如果对QStyle不太了解的话,可以用下面的方法来实现。1. 使用QPushButton 通过自定义一个按钮样式
2010-01-13 14:54:00
23275
1
转载 [转]Qt编程中的常见问题
1、如果在窗体关闭前自行判断是否可关闭答:重新实现这个窗体的closeEvent()函数,加入判断操作 void MainWindow::closeEvent(QCloseEvent *event){ if (maybeSave()) { writeSettings(); event->accept(); } else
2010-01-13 14:34:00
2064
转载 [转]UML类图关系模式及C++代码说明
在UML类图中的关系模式主要有以下几种: 泛化(Generalization), 实现(Realization), 关联(Association), 聚合(Aggregation), 依赖(Dependency) 等.1. 泛化(Generalization) 泛化关系: 是一种继承关系, 表示一般与特殊的关系, 它指定了子类如何特化父类的所有特征和行为. 老虎是动物的一种, 即有老虎
2010-01-11 16:15:00
997
原创 我的emacs配置
有点乱,有空整理一下;; Red Hat Linux default .emacs initialization file ; -*- mode: emacs-lisp -*-;; Set up the keyboard so the delete key on both the regular keyboard;; and the keypad delete the characte
2008-04-07 12:22:00
820
原创 Ubuntu 7.04 install Chinese input method
今天装了Ubuntu 7.04 英文版,发现要些点东西没中文很不方便,就想装一个中文输入法。Linux下比较有名的两个中文输入法就是scim和fcitx,个人感觉还是fcitx比较好用,于是就准备安一个用一下,本以为很简单的问题,结果中间还是除了点状况。下面是我的安装过程:1.安装fcitx sudo apt-get install fcitx im-switch2.修改“X Input M
2008-04-06 18:38:00
1229
转载 Using MingW to build VLC from the source
Submitted by yuz on Mon, 2006-04-10 21:46.Cross-Platform | MultiMedia | ProgrammingFinally Ive successfully built VLC on WinXP! This whole build process is not as easy as I expected. So now I
2007-01-16 20:30:00
2064
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人