伸手党求教,QtCreater一大堆输出信息

加盾男爵 2017-11-20 04:28:15
今天应为需要QMessageBox那几个静态函数弹出对话框上的图片(准备截个图然后给美工让他帮我画个一样的),然后我写了个简单的程序用于弹出这几个对话框方便截图

头文件
#include <QDialog>
#include <QPushButton>

class MessageBoxIcon : public QDialog
{
Q_OBJECT
private:
QPushButton* info_PushButton;
QPushButton* question_PushButton;
QPushButton* warning_PushButton;
QPushButton* erro_PushButton;
public:
MessageBoxIcon(QWidget *parent = 0);
~MessageBoxIcon();
private slots:
void showInfoBox();
void showQuestionBox();
void showWarningBox();
void showErroBox();
};


cpp文件
#include <QHBoxLayout>
#include <QMessageBox>
#include "messageboxicon.h"

MessageBoxIcon::MessageBoxIcon(QWidget *parent)
: QDialog(parent)
{
setFixedSize(500,500);

info_PushButton = new QPushButton(tr("信息"));
question_PushButton = new QPushButton(tr("提问"));
warning_PushButton = new QPushButton(tr("警告"));
erro_PushButton = new QPushButton(tr("严重问题"));

QHBoxLayout* main_Layout = new QHBoxLayout;
main_Layout->addWidget(info_PushButton);
main_Layout->addWidget(question_PushButton);
main_Layout->addWidget(warning_PushButton);
main_Layout->addWidget(erro_PushButton);
setLayout(main_Layout);

connect(info_PushButton,SIGNAL(clicked()),this,SLOT(showInfoBox()));
connect(question_PushButton,SIGNAL(clicked()),this,SLOT(showQuestionBox()));
connect(warning_PushButton,SIGNAL(clicked()),this,SLOT(showWarningBox()));
connect(erro_PushButton,SIGNAL(clicked()),this,SLOT(showErroBox()));
}

MessageBoxIcon::~MessageBoxIcon()
{

}

void MessageBoxIcon::showInfoBox()
{
QMessageBox::information(this,tr("info"),tr("info"),QMessageBox::Yes);
}

void MessageBoxIcon::showQuestionBox()
{
QMessageBox::question(this,tr("question"),tr("question"),QMessageBox::Yes);
}

void MessageBoxIcon::showWarningBox()
{
QMessageBox::warning(this,tr("warning"),tr("warning"),QMessageBox::Yes);
}

void MessageBoxIcon::showErroBox()
{
QMessageBox::critical(this,tr("erro"),tr("erro"),QMessageBox::Yes);
}


程序在简单不过了,就是点击按钮弹出对话框,方便截图,我的环境是win7+gcc+qt5.7
然后程序运行时出现了一大堆信息:

DLL_PROCESS_ATTACH called(18770648)#Kw#[KwShellExtDll.cpp:38](2624)- get_clsid path = C:\Users\Administrator\AppData\Roaming\kgrades4582\Conf\User\config.ini
(18770648)#Kw#[KwShellExtDll.cpp:72](2624)- DllGetClassObject clsid = {0b57ee89-3234-4639-9f84-9d8dd5c8b69d}
(18770648)#Kw#[KwShellIconOverlay.cpp:46](2624)- QueryInterface NOERROR
(18770648)#Kw#[KwShellIconOverlay.cpp:46](2624)- QueryInterface NOERROR
(18770648)#Kw#[KwShellIconOverlay.cpp:74](2624)- GetOverlayInfo called
(18770648)#Kw#[KwShellExtMain.cpp:25](2624)- CKwShellExtMain create
(18770648)#Kw#[KwShellExtMain.cpp:249](2624)- *INFO* shell start
(18770648)#Kw#[KwShellExtMain.cpp:130](1908)- CKwShellExtMain CheckIsShell name = MessageBoxIcon.exe
Init CheckInShell ret(18777840)#Kw#[KwShellExtDll.cpp:53](2624)- DllGetClassObject g_cRefThisDll = 1
DLL_PROCESS_DETACH UnInit called(18777855)#Kw#[KwShellExtMain.cpp:65](2624)- UnInit is_init = 1
(18777855)#Kw#[KwShellExtMain.cpp:256](2624)- CKwShellExtMain Stop called net_thread_pool_ = 006ED720
(18777855)#Kw#[dcheck.cpp:30](2624)- :threading\thread.cc(105)] Check failed: !message_loop_.

程序运行一切正常,但我实在看不懂这到底提示个啥,我把这些信息的其中某些部分在网上搜了下,也没什么结果,我想问下这个是属于什么情况?
...全文
241 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
加盾男爵 2017-11-21
  • 打赏
  • 举报
回复
引用 1 楼 ch122633 的回复:
是不是什么dll的信息? DLL_PROCESS_ATTACH DLL_PROCESS_DETACH KwShellExtDll.cpp KwShellExtMain.cpp dcheck.cpp 上面的都是啥。。。好高深
不知道啊,这些信息以前都没见过。。。但程序能正常运行
习惯就好zz 2017-11-21
  • 打赏
  • 举报
回复
是不是什么dll的信息? DLL_PROCESS_ATTACH DLL_PROCESS_DETACH KwShellExtDll.cpp KwShellExtMain.cpp dcheck.cpp 上面的都是啥。。。好高深

16,216

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧