QInputDialog::getInt
来源:互联网 发布:舞蹈软件下载 编辑:程序博客网 时间:2024/04/26 05:27
原型:
int QInputDialog::getInt(QWidget * parent, const QString & title, const QString & label, int value = 0, int min = -2147483647, int max = 2147483647, int step = 1, bool * ok = 0, Qt::WindowFlags flags = 0) [static]
解释:
Static convenience function to get an integer input from the user.
title is the text which is displayed in the title bar of the dialog. label is the text which is shown to the user (it should say what should be entered). value is the default integer which the spinbox will be set to. min and max are the minimum and maximum values the user may choose. step is the amount by which the values change as the user presses the arrow buttons to increment or decrement the value.
例:
bool ok;
int i = QInputDialog::getInt(this, tr("QInputDialog::getInteger()"),
tr("Percentage:"), 25, 0, 100, 1, &ok);
if (ok)
integerLabel->setText(tr("%1%").arg(i));
- QInputDialog::getInt
- QInputDialog
- QInputDialog
- getint() sql
- 【网摘】Getint
- QInputDialog基本用法
- C++getint()读入优化
- (11)QInputDialog--输入对话框
- SharedPreferences.getInt() 出现ClassCastException错误
- Qt标准对话框之 QInputDialog-18
- QInputDialog还挺好用的呵呵
- PyQt5系列教程(九)QInputDialog的使用
- QT之GUI学习笔记(十三)----QInputDialog
- QT中的QInputDialog的小例子
- Qt标准对话框之输入对话框(QInputDialog)
- view.class.getField(s).getInt(null);
- processing-MySQL learning1-getString() , getInt() and query()
- JSON中getInt()和optInt()的区别
- 流媒体Live555(五)——openRTSP流程分析
- 更好地生活--睡眠
- AE开发中实现Control中的各种图形工具的方法
- java访问sql 2008 检索自动生成的键,获得 IDENTITY 值的方法
- jquery ui 简单引用
- QInputDialog::getInt
- windows和linux中程序栈空间
- pdf 文本转换为 java 字符串
- hdu 1381 Crazy Search(hash)
- 如何删除source insight中打开工程的历史记录
- RFT 实用CODE
- HDU 2087剪花布条(简单KMP)
- 范磊C++ 原创笔记 第六章 面向对象
- office2007下载地址