当前位置: 首页 > news >正文

在国外怎么做网站网站收录 作用

在国外怎么做网站,网站收录 作用,微信商店小程序怎么弄,网线制作的标准X11是Linux发行系统中广泛采用的显示协议#xff0c;各个系统基本上都支持XLib库#xff0c;作为底层接口#xff0c;XReparentWindow接口的功能就是重新设置父窗口#xff0c;注意这个可以跨进程设置父窗口#xff0c;例如将已经运行的进程的父窗口设置自己的程序Wid各个系统基本上都支持XLib库作为底层接口XReparentWindow接口的功能就是重新设置父窗口注意这个可以跨进程设置父窗口例如将已经运行的进程的父窗口设置自己的程序Wid即可将第三方进程嵌入到自己的程序窗口中自己用这个接口写了一段代码在UOS上运行的正常后面跑在Kylin 4.0.2和V10上程序出现了一些难以琢磨的情况嵌入的程序无法focus查阅到qt的container容器可以完成这个功能查阅了qt4和qt5的源码发先程序嵌入确实不是简简单单的XReparentWindow调用后续还涉及到各种消息转发操作后续学习。 bool QX11EmbedContainer::eventFilter(QObject *o, QEvent *event) {Q_D(QX11EmbedContainer);switch (event-type()) {case QEvent::KeyPress:// Forward any keypresses to our client.if (o this d-client) {lastKeyEvent.window d-client;XSendEvent(x11Info().display(), d-client, false, KeyPressMask, (XEvent *) lastKeyEvent);return true;}break;case QEvent::KeyRelease:// Forward any keyreleases to our client.if (o this d-client) {lastKeyEvent.window d-client;XSendEvent(x11Info().display(), d-client, false, KeyReleaseMask, (XEvent *) lastKeyEvent);return true;}break;case QEvent::WindowActivate:// When our container window is activated, we pass the// activation message on to our client. Note that X input// focus is set to our focus proxy. We want to intercept all// keypresses.if (o window() d-client) {if (d-clientIsXEmbed) {sendXEmbedMessage(d-client, x11Info().display(), XEMBED_WINDOW_ACTIVATE);} else {d-checkGrab();if (hasFocus())XSetInputFocus(x11Info().display(), d-client, XRevertToParent, x11Time());}if (!d-isEmbedded())d-moveInputToProxy();}break;case QEvent::WindowDeactivate:// When our container window is deactivated, we pass the// deactivation message to our client.if (o window() d-client) {if (d-clientIsXEmbed)sendXEmbedMessage(d-client, x11Info().display(), XEMBED_WINDOW_DEACTIVATE);elsed-checkGrab();}break;case QEvent::FocusIn:// When receiving FocusIn events generated by Tab or Backtab,// we pass focus on to our client. Any mouse activity is sent// directly to the client, and it will ask us for focus with// XEMBED_REQUEST_FOCUS.if (o this d-client) {if (!d-isEmbedded())d-activeContainer this;if (d-clientIsXEmbed) {if (!d-isEmbedded())d-moveInputToProxy();QFocusEvent *fe (QFocusEvent *)event;switch (fe-reason()) {case Qt::TabFocusReason:sendXEmbedMessage(d-client, x11Info().display(), XEMBED_FOCUS_IN, XEMBED_FOCUS_FIRST);break;case Qt::BacktabFocusReason:sendXEmbedMessage(d-client, x11Info().display(), XEMBED_FOCUS_IN, XEMBED_FOCUS_LAST);break;default:sendXEmbedMessage(d-client, x11Info().display(), XEMBED_FOCUS_IN, XEMBED_FOCUS_CURRENT);break;}} else {d-checkGrab();XSetInputFocus(x11Info().display(), d-client, XRevertToParent, x11Time());}}break;case QEvent::FocusOut: {// When receiving a FocusOut, we ask our client to remove its// focus.if (o this d-client) {if (!d-isEmbedded()) {d-activeContainer 0;if (isActiveWindow())d-moveInputToProxy();}if (d-clientIsXEmbed) {QFocusEvent *fe (QFocusEvent *)event;if (o this d-client fe-reason() ! Qt::ActiveWindowFocusReason)sendXEmbedMessage(d-client, x11Info().display(), XEMBED_FOCUS_OUT);} else {d-checkGrab();}}}break;case QEvent::Close: {if (o this d-client) {// Unmap the client and reparent it to the root window.// Wait until the messages have been processed. Then ask// the window manager to delete the window.XUnmapWindow(x11Info().display(), d-client);XReparentWindow(x11Info().display(), d-client, x11Info().appRootWindow(x11Info().screen()), 0, 0);XSync(x11Info().display(), false);XEvent ev;memset(ev, 0, sizeof(ev));ev.xclient.type ClientMessage;ev.xclient.window d-client;ev.xclient.message_type ATOM(WM_PROTOCOLS);ev.xclient.format 32;ev.xclient.data.s[0] ATOM(WM_DELETE_WINDOW);XSendEvent(x11Info().display(), d-client, false, NoEventMask, ev);XFlush(x11Info().display());d-client 0;d-clientIsXEmbed false;d-wmMinimumSizeHint QSize();updateGeometry();setEnabled(false);update();emit clientClosed();}}default:break;}return QWidget::eventFilter(o, event); }麒麟系统和WPS软件qt4的QXEmbedContainer和qt5 createContainer嵌入wps时显示空白慢慢研究解决方案去。
http://www.w-s-a.com/news/108226/

相关文章:

  • 网站建设主要研究内容用哪个程序做网站收录好
  • 网站建设如何开单装修设计图免费
  • 做内容网站赚钱吗seo推广具体做什么
  • 连山区网站建设seo简历
  • 自助建站系统官方版太仓高端网站制作
  • 怎样只做自己的网站建设银行唐山分行网站
  • 咸阳鑫承网站建设软件开发公司网站模板
  • 百度怎么免费做网站网站建设大作业有代码
  • 小说素材网站设计素材网站特点
  • 如何建设一个好的网站WordPress主题设置数据库
  • 网站被模仿十堰网站制作公司
  • 怎么样做免费网站个人网站备案幕布
  • 做ppt的动图下载哪些网站制作一个网站需要多少时间
  • 公司网站开发制作备案中的网站
  • 怎么看网站的收录网站开发先前台和后台
  • 合肥市做网站多少钱wordpress网站布置视频
  • 中国建设人才网信息网站软件外包公司好不好
  • 网站建设与管理 市场分析上海网站建设公司排名
  • 怎么将公司网站设成首页网址关键词查询网站
  • 怎么用ps做网站ui邱县专业做网站
  • 国开行网站毕业申请怎么做大连旅顺口旅游攻略
  • 鲜花店网站源码成都专做婚介网站的公司
  • 合肥企业网站建设工哈尔滨公告
  • 华强北 做网站互联网服务平台入口
  • vi设计案例网站微信导航网站 dedecms
  • 青浦区做网站设计图片手绘图片
  • 做网站的基本功制作网站公司推荐
  • 阿里云快速建站教程个人网站 费用
  • 广东购物网站建设微信公众号制作模板免费
  • 阿里国际站韩语网站怎么做让移动网站