Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by const QString
Debugging bugs in x64dbg debugger. Step out to GUI
Author: Taras Shevchenko We all need to interact with a debugger somehow: via text or a graphical user interface. A nasty bug may appear in a program "shell" with a well-established core. Users are unlikely to like it. Any developer would want to avoid this situation.
Debugging bugs in x64dbg debugger. Step out to GUI
We all need to interact with a debugger somehow: via text or a graphical user interface. A nasty bug may appear in a program "shell" with a well-established core. Users are unlikely to like it. Any developer would want to avoid this situation. Restoring context In the first part of the article about the x64dbg standalone debugger, we examined its core holding Intel Pentium 4 processor documentation in one hand, Windows API in the second one, and a math textbook – in the third one.
Qt内存管理、UI编辑器、客制化组件、弹出对话框、常用部件类-CSDN博客
头文件的小技巧 #include <QtWidgets> // 在自动生成的 .h 里面加上此句 适用条件: QT 的内存管理 当父窗体被关闭时,子部件的内存会自动释放。 对象树是一种管理对象生命周期的机制。当一个对象被添加到另一个对象的子对象列表中时,Qt 会自动将其设置为父对象的子对象,并在父对象被销毁时自动销毁其所有子对象。这种机制可以避免内存泄漏和悬空指针的问题。 UI 编辑器 UI 编辑器会在项目构建目录中自动生成一个 ui_xxx.h(构建一次后才会生成),来表示 UI 编辑器界面的代码,属于自动生成的,一定不要修改。代码中如果要修改界面中的某个部件的属性,应该用 ui->xxx 获取到部件,然后调用相应的方法修改。 #ifndef UI_WIDGET_H #define UI_WIDGET_H #include <QtCore/QVariant> #include <QtWidgets/QAction> #include <QtWidgets/QApplication> #include <QtWidgets/QButtonGroup> #include...
QT基础教程之五对话框QDialog_步、步、为营的博客-CSDN博客
基本概念 对话框是 GUI 程序中不可或缺的组成部分。很多不能或者不适合放入主窗口的功能组件都必须放在对话框中设置。对话框通常会是一个顶层窗口,出现在程序最上层,用于实现短期任务或者简洁的用户交互。 Qt 中使用QDialog类实现对话框。就像主窗口一样,我们通常会设计一个类继承QDialog。QDialog(及其子类,以及所有Qt::Dialog类型的类)的对于其 parent 指针都有额外的解释:如果 parent 为 NULL,则该对话框会作为一个顶层窗口,否则则作为其父组件的子对话框(此时,其默认出现的位置是 parent 的中心)。顶层窗口与非顶层窗口的区别在于,顶层窗口在任务栏会有自己的位置,而非顶层窗口则会共享其父组件的位置。 对话框分为模态对话框和非模态对话框。 模态对话框,就是会阻塞同一应用程序中其它窗口的输入。 模态对话框很常见,比如“打开文件”功能。你可以尝试一下记事本的打开文件,当打开文件对话框出现时,我们是不能对除此对话框之外的窗口部分进行操作的。 与此相反的是非模态对话框,例如查找对话框,我们可以在显示着查找对话框的同时,继续对记事本的内容进行编辑。...
QT基础教程之四QMainWindow_专注于.NET领域的技术博客_51CTO博客
QT基础教程之四QMainWindow QMainWindow是一个为用户提供主窗口程序的类,包含一个菜单栏(menu bar)、多个工具栏(tool bars)、多个锚接部件(dock widgets)、一个状态栏(status bar)及一个中心部件(central widget),是许多应用程序的基础,如文本编辑器,图片编辑器等。 一个主窗口最多只有一个菜单栏。位于主窗口顶部、主窗口标题栏下面。 创建菜单栏,通过QMainWindow类的menubar()函数获取主窗口菜单栏指针 QMenuBar * menuBar() const l创建菜单,调用QMenu的成员函数addMenu来添加菜单 QAction* addMenu(QMenu * menu) QMenu* addMenu(const QString & title) QMenu* addMenu(const QIcon & icon, const QString & title) l创建菜单项,调用QMenu的成员函数addAction来添加菜单项 QAction* activeAction() const...
【Qt学习】04:QDialog_hello world 999的博客-CSDN博客
对话框是 GUI 程序中不可或缺的组成部分,对话框通常会是一个顶层窗口出现在程序最上层,用于实现短期任务或者简单用户交互。 Qt 中使用QDialog类实现对话框,通常会设计一个类继承QDialog。如果QDialog 的 parent 为 NULL,则该对话框会作为一个顶层窗口,否则则作为其父组件的子对话框(此时其默认出现的位置是 parent 的中心),顶层窗口与非顶层窗口的区别在于,顶层窗口在任务栏会有自己的位置,而非顶层窗口则会共享其父组件的位置。 标准对话框是 Qt 内置的一系列对话框用于简化开发,有很多对话框都是通用的,比如打开文件、设置颜色、打印设置等。这些对话框在所有程序中几乎相同,因此没有必要在每一个程序中都自己实现这么一个对话框。 Qt 的内置的标准对话框大致分为以下几类: QColorDialog: 选择颜色; QFileDialog: 选择文件或者目录; QFontDialog: 选择字体; QInputDialog: 允许用户输入一个值,并将其值返回; QMessageBox: 消息对话框,模态对话框,用于显示信息、询问问题等;...
Qt--多窗口编程_qt多窗口_sy_青柠的博客-CSDN博客
目录 dialog.h dialog.cpp dialog.ui dialog.cpp mainwindow.h mainwindow.cpp mainwindow.ui dialog.h dialog.cpp dialog.ui dialog.h dialog.cpp mydialog.h mydialog.cpp dialog.h dialog.cpp mydialog.h mydialog.cpp dialog.h dialog.cpp QMessageBox继承自QDialog,是一种用于通知用户或询问用户一个问题的对话框窗口,这种窗口是模态的,会抢占窗口焦点,必须优先处理。 Qt内置的Dialog的派生类通常使用静态成员函数弹出: // 参数1:父窗口 // 参数2:标题,相当于windowTitle属性 // 参数3:显示的信息 // 返回值:点击的按键类型 StandardButton QMessageBox::四种弹窗类型(QWidget * parent, const QString & title, const QString & text) [static]...
2.4.2QT之comboBox下拉框_qt combobox_最没脑子的博客-CSDN博客
QComboBo 以列表的方式提供一个下拉选项提供给用户显示,节省屏幕占用空间。下拉组合框中数据都可以修改编辑,可以包含图片以及字符串文本。Word 文档软件中的字体选择框、字号选择框、颜色选择框都是使用ComboBo 实现。 提示:以下是本篇文章正文内容,下面案例可供参考 2.4.2.1 QComboBo 常用的成员函数 1、添加条目信息 void QComboBox::addItem(const QString &text, const QVariant &userData = QVariant()) void QComboBox::addItem(const QIcon &icon, const QString &text, const QVariant &userData = QVariant()) void QComboBox::addItems(const QStringList &texts) addItem 是一个重载函数,可以单独添加字符串文本,也可以添加图标.
Re: MSVC gives warnings "qt_ui_utils.cpp(208, 25): warning C4996: 'QProcess::startDetached'"
Wireshark mailing list archives By Date By Thread Re: MSVC gives warnings "qt_ui_utils.cpp(208, 25): warning C4996: 'QProcess::startDetached'" From: Graham Bloice <graham.bloice () trihedral com> Date: Fri, 11 Feb 2022 10:35:17 +0000 From the online Qt docs <https://doc.qt.io/qt-5/qprocess-obsolete.html#startDetached-2>: bool QProcess::startDetached(const QString <https://doc.qt.io/qt-5/qstring.html> &*command*) <https://doc.qt.io/qt-5/qprocess-obsolete.html#startDetached-2> This function is...
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with const
Contact const, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack