Git Product home page Git Product logo

mulitprocesstab's Introduction

多进程Demo

类似于Chrome浏览器,多进程按照Tab的方式显示

(目前仅在windows平台使用)

Build status

Windows
win-badge

License

License

预览图

主页

Tab页

说明

标题栏和首页,是主进程,每个tab页面,是一个独立的子进程。

子进程窗口通过Windows API SetParent的方式,附加到主进程。

Tab切换,使用进程间通讯机制,将目标Tab的窗口置顶。

进程间通讯机制

使用Qt的LocalSocket功能。

主进程启动之后,创建一个LoaclServer,使用随机uuid作为server名称。

创建Tab时启动子进程,将server名称传递给子进程,子进程启动后,创建LoclaSocket来连接server。

开发环境

  • Qt 5.9.x Windows

联系方式:


作者 涛哥
QQ、TIM 759378563
微信 xsd2410421
邮箱 [email protected]
blog https://wentaojia2014.github.io/

QQ(TIM)、微信二维码

请放心联系我,乐于提供咨询服务,也可洽谈有偿技术支持相关事宜。

打赏

觉得分享的内容还不错, 就请作者喝杯奶茶吧~~

mulitprocesstab's People

Contributors

jaredtao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.