自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (2)
  • 收藏
  • 关注

原创 删除QGridLayout中的Widget

QLayoutItem *child;while(child=ui->horizontalLayout->itemAt(0)) {ui->horizontalLayout->takeAt(0);child->widget()->setParent(0);//不释放窗体要讲父窗口设置为空,不然界面不更新,出现混乱,这样删除的好处是删除的窗体没有被释放,可以重用重新加入到布局中//

2017-11-17 18:06:01 2126 3

原创 完美去除google地图logo和版权

gg            html,body{margin:0;padding:0;}       a,span{display:none;}          function logo()  //去除logo和版权        {           // var a = document.getElementById('map');       

2017-08-17 09:11:54 5769 2

stm32f103r6仿真计数器程序+Proteus

m32f103r6仿真计数器程序+Proteus 单片机源程序如下: #include "stm32f10x.h" #include "Delay.h" #include "smg.h" #include "sys.h" #include "timer.h" #include "led.h" #include "fmq.h" #include "key.h" #include "stm32f10x_tim.h" uint16_t table[] = { /* 0, 1, 2, 3, 4, 5, 6, 7, 8, */ 0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, /* 9, A, B, C, D, E, F, ., none */ 0x6F, 0x77, 0x7C, 0x39, 0x5E, 0x79, 0x71, 0x80, 0x00 }; uint16_t t; uint16_t num[3],inc = 0x00; int main(void) { SMG_Init(); GPIO_Write(GPIOA, 0x3f3f); GPIO_Write(GPIOB, 0xff3f); while (1) { t=KEY_Scan_KEY_INC(); //得到键值 if(t) //if(条件)t!=0真 { inc++; if(inc <= 0xff) { num[2]=inc%10; num[1]=inc/10%10; num[0]=inc/100; GPIO_Write(GPIOB,((~inc) <<8) + table[num[2]]); GPIO_Write(GPIOA,(table[num[1]] <<8) + table[num[0]]); } else { inc = 0xff; } } } }

2020-07-14

空空如也

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

TA关注的人

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