qt界面设置为qt 主窗口

番茄系统家园 · 2021-07-10 01:43:50

qt界面设置为qt 主窗口

  }

重写事件方法:

    (*);

 (*)

  {

    =;

    if(->type()==QEvent::WinIdChange)

    {

      HWNDhwnd=reinterpret_cast

(winId());

      if(class_amended==false)

      {

        class_amended=true;

        DWORDclass_style=::GetClassLong(hwnd,GCL_STYLE);

        class_style&=~CS_DROPSHADOW;

        ::SetClassLong(hwnd,GCL_STYLE,class_style);//windows系统函数

      }

    }

    returnQWidget::event(event);

  }

 

相关阅读

  • qt下win7弹出窗口方法
  • qt笔记将窗口嵌入桌面
  • qt界面设置为qt 主窗口
  • 免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/post/10204.html。
    猜你喜欢
    最新应用
    热门应用