1 line
5.6 KiB
JavaScript
1 line
5.6 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[359],{417:function(e,n,r){"use strict";r.r(n),r.d(n,"frontMatter",(function(){return a})),r.d(n,"metadata",(function(){return s})),r.d(n,"rightToc",(function(){return c})),r.d(n,"default",(function(){return l}));var t=r(2),o=r(6),i=(r(0),r(455)),a={sidebar_label:"process",title:"process"},s={unversionedId:"api/manual/process",id:"api/manual/process",isDocsHomePage:!1,title:"process",description:"Extensions to process object.",source:"@site/docs/api/manual/process.md",slug:"/api/manual/process",permalink:"/docs/api/manual/process",editUrl:"https://github.com/nodegui/nodegui/edit/master/website/docs/api/manual/process.md",version:"current",sidebar_label:"process",sidebar:"api",previous:{title:"Range",permalink:"/docs/api/generated/interfaces/range"}},c=[{value:"Properties",id:"properties",children:[{value:"<code>process.versions.qode</code> <em>Readonly</em>",id:"processversionsqode-readonly",children:[]},{value:"<code>process.versions.qt(compiled)</code> <em>Readonly</em>",id:"processversionsqtcompiled-readonly",children:[]},{value:"<code>process.versions.qt(runtime)</code> <em>Readonly</em>",id:"processversionsqtruntime-readonly",children:[]}]}],p={rightToc:c};function l(e){var n=e.components,r=Object(o.a)(e,["components"]);return Object(i.b)("wrapper",Object(t.a)({},p,r,{components:n,mdxType:"MDXLayout"}),Object(i.b)("blockquote",null,Object(i.b)("p",{parentName:"blockquote"},"Extensions to process object.")),Object(i.b)("p",null,"Qode's ",Object(i.b)("inlineCode",{parentName:"p"},"process")," object is extended from the\n",Object(i.b)("a",Object(t.a)({parentName:"p"},{href:"https://nodejs.org/api/process.html"}),"Node.js ",Object(i.b)("inlineCode",{parentName:"a"},"process")," object"),".\nIt adds the following properties :"),Object(i.b)("h2",{id:"properties"},"Properties"),Object(i.b)("h3",{id:"processversionsqode-readonly"},Object(i.b)("inlineCode",{parentName:"h3"},"process.versions.qode")," ",Object(i.b)("em",{parentName:"h3"},"Readonly")),Object(i.b)("p",null,"A ",Object(i.b)("inlineCode",{parentName:"p"},"String")," representing Qode's version string. Qode is a lightly modified version of NodeJs that allows running Qt and NodeJs under a single process."),Object(i.b)("h3",{id:"processversionsqtcompiled-readonly"},Object(i.b)("inlineCode",{parentName:"h3"},"process.versions.qt(compiled)")," ",Object(i.b)("em",{parentName:"h3"},"Readonly")),Object(i.b)("p",null,"A ",Object(i.b)("inlineCode",{parentName:"p"},"String")," representing Qt version used when compile Qode binary. This can be useful to know which version of Qt is binary compatible with the version of Qode you are running. This is useful when running qode with a different version of Qt than what it was compiled with."),Object(i.b)("h3",{id:"processversionsqtruntime-readonly"},Object(i.b)("inlineCode",{parentName:"h3"},"process.versions.qt(runtime)")," ",Object(i.b)("em",{parentName:"h3"},"Readonly")),Object(i.b)("p",null,"A ",Object(i.b)("inlineCode",{parentName:"p"},"String")," representing Qt version of the Qt library loaded during runtime. This can be useful to know which version of Qt you are using at runtime as compared to the version of Qt used when Qode was compiled.This is possible since Qt is dynamically linked to Qode and you could replace the Qt dynamic libraries with any binary compatible library. Hence, this is useful when running qode with a different version of Qt than what it was compiled with."))}l.isMDXComponent=!0},455:function(e,n,r){"use strict";r.d(n,"a",(function(){return d})),r.d(n,"b",(function(){return m}));var t=r(0),o=r.n(t);function i(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){i(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function c(e,n){if(null==e)return{};var r,t,o=function(e,n){if(null==e)return{};var r,t,o={},i=Object.keys(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||(o[r]=e[r]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)r=i[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=o.a.createContext({}),l=function(e){var n=o.a.useContext(p),r=n;return e&&(r="function"==typeof e?e(n):s(s({},n),e)),r},d=function(e){var n=l(e.components);return o.a.createElement(p.Provider,{value:n},e.children)},u={inlineCode:"code",wrapper:function(e){var n=e.children;return o.a.createElement(o.a.Fragment,{},n)}},b=o.a.forwardRef((function(e,n){var r=e.components,t=e.mdxType,i=e.originalType,a=e.parentName,p=c(e,["components","mdxType","originalType","parentName"]),d=l(r),b=t,m=d["".concat(a,".").concat(b)]||d[b]||u[b]||i;return r?o.a.createElement(m,s(s({ref:n},p),{},{components:r})):o.a.createElement(m,s({ref:n},p))}));function m(e,n){var r=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var i=r.length,a=new Array(i);a[0]=b;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s.mdxType="string"==typeof e?e:t,a[1]=s;for(var p=2;p<i;p++)a[p]=r[p];return o.a.createElement.apply(null,a)}return o.a.createElement.apply(null,r)}b.displayName="MDXCreateElement"}}]); |