- 博客(19)
- 收藏
- 关注
转载 QTableView
By default the cell in QTableView starts being edited after double click. How to change this behavior. I need it to start editing after one click.void YourView::mousePressEvent(QMouseEvent
2014-11-26 10:52:29 388
转载 qt 之QTableWidget控件
QTableWidget控件总结【1】QTableWidget简介QTableWidget是QT对话框设计中常用的显示数据表格的控件。学习QTableWidget就要首先看看QTableView控件(控件也是有”家世“的!就像研究人一样一样的),因为QTableWidget继承于类QTableView。两者主要区别是QTableView可以使用自定义的数据模型来显示
2014-11-24 15:15:40 2162
转载 Qt 之 QEventLoop
Qt 是事件驱动的,所以当你用Qt的时候,几乎时时刻刻和 QEventLoop 打交道、,只是你可能没有意识到:QCoreApplicaton::exec()QApplication::exec()QDialog::exec()QThread::exec()QDrag::exec()QMenu::exec()...在前面列出的这些常见函数的背后,都有各自的QEventLoop,可能
2014-11-18 18:27:06 789
转载 qt 之 QClipboard
QClipboard *clipboard = QApplication::clipboard();clipboard->setText(sourceEdit->text());
2014-11-13 14:19:13 708
转载 qt 之webengine
http://blog.qt.digia.com/blog/2013/09/12/introducing-the-qt-webengine/
2014-11-12 09:37:28 623 1
转载 Qt 之QRegExp
QString strPatt = "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b";
2014-11-10 15:03:10 798
转载 HTTP协议详解
引言 HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是HTTP/1.0的第六版,HTTP/1.1的规范化工作正在进行之中,而且HTTP-NG(Next Generation of
2014-11-06 17:45:49 278
转载 qt 之 How to Change the Background Color of QWidget
Using the PaletteThe first example demonstrates how to change the background color using QPalette [qt-project.org]m_pMyWidget = new QWidget(this);m_pMyWidget->setGeometry(0,0,3
2014-11-03 16:04:17 625
转载 how to reveal in finder or show in explorer with qt
void FolderNavigationWidget::showInGraphicalShell(QWidget *parent, const QString &pathIn){ // Mac, Windows support folder or file.#if defined(Q_OS_WIN) const QString explorer = Environment::
2014-11-01 17:01:48 1113
转载 Qt 之 QProcess
QProcess * process=new QProcess(this);QString temp="\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"";process->startDetached(temp);You need to use escaped quotes since the path has a space
2014-11-01 16:23:22 552
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人