![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
QT客户端开发
搓搓程序狗
you can you code,no can no bb
展开
-
breakpad下载-编译-常见问题
一、概述breakpad是google开源的一套用于进程crash的处理方案,跨平台。但由于现在有沙盒技术,会导致breakpad无法生成dump,所以google又开发了一个crashpad项目,用来替代breakpad。二、直接编译不想自己弄这些的可以下载直接可以编译的源码:三、体验流程1、源码下载(能访问googlesource访问googlesource,不能的github上找吧) breakpad (crash库源码): https://github.com/goog...原创 2021-08-26 13:56:32 · 1061 阅读 · 0 评论 -
4.显示器多屏问题
使用 QDesktopWidgetQDesktopWidget* desktopWidget = QApplication::desktop();//获取当前系统所有的屏幕个数,默认主屏的索引为 0int screenNum = desktopWidget->numScreens();//根据屏幕索引号获取屏幕位置QRect rect = desktop->screenGeometry(index);//在窗口显示之前或者其构造函数之前调用setGeometry设置其位原创 2021-08-10 17:43:37 · 196 阅读 · 0 评论 -
3.无边框下最大、最小化等出现界面冻结
void MainWidget::showEvent(QShowEvent *event){ //解决自定义标题栏,恢复最小化时出现界面冻结问题 this->setAttribute(Qt::WA_Mapped); QWidget::showEvent(event);}原创 2021-08-02 10:37:32 · 176 阅读 · 0 评论 -
2.启动动画
QApplication a(argc, argv);//......//多屏情况下选择主屏QDesktopWidget* desktop = QApplication::desktop();QRect curScreenRect = desktop->screenGeometry(0);//启动动画(适当调整)QPixmap pixmap(PROGRAM_START_ANIMATION);QSplashScreen splash(pixmap.scaled(curScreenRec.原创 2021-07-30 10:40:54 · 188 阅读 · 0 评论 -
1. 程序启动一次、开机启动
int main(){ //......... QSystemSemaphore sema("JAMKey",1,QSystemSemaphore::Open); sema.acquire();// 在临界区操作共享内存 SharedMemory QSharedMemory mem("SystemObject");// 全局对象名 if (!mem.create(1))// 如果全局对象以存在则退出 { QMessageBox::in.原创 2021-07-23 18:03:48 · 125 阅读 · 0 评论