自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 Homebrew 更换国内源

eval "$(/opt/homebrew/bin/brew shellenv)"export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-cask.git"export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/hom.

2022-01-23 20:58:01 690

转载 Qt 插件开发 获取 主界面指针 QMainWindow *

(47条消息) Qt之如何获取主窗口的指针_草上爬的博客-CSDN博客_qt获取mainwindow窗口的指针在插件开发时,插件的对话框需要设置parent为应用的主界面。否则在任务栏切换时操作系统会将对话框与应用主界面放到 平等的位置上,形成一个新的独立窗。需要注意的是:qApp->topLevelWidgwt() 获得所有的顶级窗口。都是QwidgetqApp->topLevelWindow ()获得所有的QWindow看起来用qApp->topLevelW

2022-01-11 11:08:22 2474

原创 M1-Mac Qt5 CMakeLists.txt

#--------------Project Config Begin --------------#cmake_minimum_required(VERSION 3.17)project(untitled CXX)set(CMAKE_CXX_STANDARD_REQUIRED ON)set(CMAKE_CXX_STANDARD 14)#--------------Project Config Begin --------------##--------------Add Targets.

2021-12-30 00:32:19 681 1

原创 C++ 重载 重定义 与重写

重载:相同行为方法的不同实现 重定义:基类与派生类之间的 “重载” 重写:虚函数+重定义

2021-06-14 18:44:44 640

转载 C/C++ int a[]和int (*a)[]的区别

int *a[]; a与[]先结合,a为数组,数组element type =int *int (*a)[]; a与* 先结合,a为指针,指向数组,同int a[];link=https://www.jianshu.com/p/548ff8e1b243

2021-04-07 17:39:28 677

转载 c++:STL deque 原理

http://c.biancheng.net/view/6908.htmlhttps://blog.csdn.net/yl_puyu/article/details/103361874

2021-03-29 20:14:07 58

原创 C++:默认参数,模板,map源码分析

map是STL的一个标准关联容器,其element为键值对(pair<key,value>);主要通过key进行访问value,而map的key 是strict weaking ordering 的 ;在学习map时想要构建一个从小到大排序的map,如下:1.默认参数--恰如其名#include<iostream>int func(int a,int b,int c=3){ std:: cout<<a<<"<<.

2021-03-25 21:42:20 868

原创 C++:cout<<自定义类型输出

1.自定义类型struct Student{ int id; string name; Student(); Student(int ID,string Name){ id=ID; name=Name; } friend ostream & operator << (ostream &out,const Student &s) { out<<s.id

2021-03-21 16:35:36 2695

原创 C:函数指针

函数指针的定义typedef int (*compare_ptr)(int,int);// so there is a Type named compare_ptrint max(int x,int y){ return x>y ? x:y;}//!函数指针的定义 //? return-type (* func_ptr) (type1,type2...) printf("max of 1,2,3=%d\n",max(max(1,3),3)); in.

2021-03-19 19:54:27 15138

原创 Rust: 引用与指针类型

指针类型Reference shared reference: &T immutable reference: &mut T Raw Pointer * const T: 对应于&T * mut T: 对应于&mut T Smart Pointer Box<T> Rc<T> ... Function PointerReference引用类型,prim...

2021-02-20 21:47:53 1610 2

原创 Rust doc 和注释的简单使用

Rust: doc and commentDoc command line:Build docs>Cargo docBuild docs and open in the browser >Cargo doc --openRust comment:Inner comment:// this is a line-comment/*This is a block-comment/*Outer comment:display in do...

2021-02-20 16:59:03 861

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除