如何获得QLineEdit的内容
how to get the content of QLineEdit
我想使用QLineEdit
作为输入。我的问题是我不知道如何读取它的内容。
假设我有:
QLineEdit *edit = new QLineEdit("");
将其添加到GUI后如何获得内容?
它有一个text
属性,所以只需执行:
edit->text();
相关文章:
- 正在查找文档以获得PS4平台的C++中的设备信息
- 如何从C++中的依赖类型中获得它所依赖的类型
- 欧拉项目#8答案是大以获得有效答案
- 如何使用C/C++在MacOSX中获得键盘布局
- 函数何时会在c++中包含stack_Unwind_Resume调用
- 如何在不产生任何垃圾的情况下获得C中的像素
- 有没有一种方法可以在编译时获得作用域类名
- 如何在C++中获得"静态纯虚拟"功能?
- Python中的for循环与C++有何不同
- 如何设置一个范围来提取我想要获得的信息
- Qt和C++:将QLineEdit添加到QTabWidget中
- 在多次运行中获得一致的callgrind输出
- 通过错误处理,在C++中可靠地获得用户十六进制输入
- 如何在Directwrite中获得给定字体的可用OpenType功能
- 在我的代码中,获得最大的Pair Wise产品C++和输出并不总是正确的
- 如何从QToolBox中动态创建的QLineEdit中获取文本
- 当用户在qtablewidget中输入单元格时,如何获得信号?C++
- 未获得字符串中的预期输出
- C++需要帮助从用户那里获得一个整数,并确保它在另外两个整数之间
- 如何获得QLineEdit的内容