nodeguy/docs/api/NodeWidget/index.html

53 lines
47 KiB
HTML

<!DOCTYPE html>
<html lang=&#34;en&#34; data-theme=&#34;&#34;>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<script type="text/javascript">/*<![CDATA[*/window.__chunkMapping={"main":["/main.f66713773e9ba37b90fe.css","/main.00ae184f6d3bd0eadbce.js"],"component---site-src-pages-index-jsc-4-f-f99":["/component---site-src-pages-index-jsc-4-f-f99.71bf8f44fd9ac59b6a50.css","/component---site-src-pages-index-jsc-4-f-f99.c77efb7a13d4c996d6c7.js"],"component---theme-blog-post-pageccc-cab":["/component---theme-blog-post-pageccc-cab.eaf730b8c654a212f785.js"],"content---blog-welcome-286-e55":["/content---blog-welcome-286-e55.76c213cf9ce75984ae91.js"],"metadata---blog-welcome-27-a-91f":["/metadata---blog-welcome-27-a-91f.ef07fafa6070c2acef91.js"],"component---theme-blog-list-pagea-6-a-7ba":["/component---theme-blog-list-pagea-6-a-7ba.697ec326a8cebf60b287.js"],"content---blogaf-1-856":["/content---blogaf-1-856.f79900332b57f969c09a.js"],"metadata---blog-83-c-2b0":["/metadata---blog-83-c-2b0.46c7be8f307d8da2c120.js"],"component---theme-doc-legacy-page-9-e-7-ca5":["/component---theme-doc-legacy-page-9-e-7-ca5.3c38a2f40a51efdd72a0.css","/component---theme-doc-legacy-page-9-e-7-ca5.d31182005d6c21dd63ac.js"],"docsMetadata---docs-150-2d6":["/docsMetadata---docs-150-2d6.a4a03dc8ae50b1fa60b5.js"],"component---theme-doc-legacy-item-031-769":["/component---theme-doc-legacy-item-031-769.1f1ce10374de019f5d3a.css","/component---theme-doc-legacy-item-031-769.6e8a6ea08d218712d94a.js"],"content---docs-doc-1-b-2-f-e80":["/content---docs-doc-1-b-2-f-e80.b11e6221286a094dd836.js"],"metadata---docs-doc-12-a-3-5a1":["/metadata---docs-doc-12-a-3-5a1.bb87820e31f222c12801.js"],"content---docs-faq-048-db5":["/content---docs-faq-048-db5.a3f7755c1443136d038e.js"],"metadata---docs-faq-59-d-2b9":["/metadata---docs-faq-59-d-2b9.985713e75ca070fdde14.js"],"content---docs-api-component-4-ef-195":["/content---docs-api-component-4-ef-195.be17a07689811b2e54a5.js"],"metadata---docs-api-component-3-e-5-43d":["/metadata---docs-api-component-3-e-5-43d.b1af807c32f3d1d45a4f.js"],"content---docs-mdxce-3-7d1":["/content---docs-mdxce-3-7d1.389cb0d1e93efb516d5d.js"],"metadata---docs-mdx-786-f56":["/metadata---docs-mdx-786-f56.e64a4ecfb244bb1efd9f.js"],"content---docs-api-event-widgetac-6-11b":["/content---docs-api-event-widgetac-6-11b.b87fa94e0cd874003d59.js"],"metadata---docs-api-event-widget-39-a-9ea":["/metadata---docs-api-event-widget-39-a-9ea.34b0ce562deb2ec0ae92.js"],"content---docs-api-flex-layout-3-dc-a16":["/content---docs-api-flex-layout-3-dc-a16.d5ab9ac7b90d9ed88203.js"],"metadata---docs-api-flex-layoutecf-540":["/metadata---docs-api-flex-layoutecf-540.7db8561c2c23b0d92b67.js"],"content---docs-api-node-layoutd-28-11a":["/content---docs-api-node-layoutd-28-11a.f1324fa8676e4bf64b44.js"],"metadata---docs-api-node-layout-1-e-9-c15":["/metadata---docs-api-node-layout-1-e-9-c15.192849fc91407c883037.js"],"content---docs-api-node-widget-080-a39":["/content---docs-api-node-widget-080-a39.e39bcda58fa051ef8f58.js"],"metadata---docs-api-node-widgeta-92-a4f":["/metadata---docs-api-node-widgeta-92-a4f.dc800d76f7062b65b2ed.js"],"content---docs-api-q-abstract-scroll-area-3-e-6-d7f":["/content---docs-api-q-abstract-scroll-area-3-e-6-d7f.ce07722700328be8dfa5.js"],"metadata---docs-api-q-abstract-scroll-area-59-d-279":["/metadata---docs-api-q-abstract-scroll-area-59-d-279.378868b047b4e7fc733c.js"],"content---docs-api-q-abstract-slider-3-e-0-54d":["/content---docs-api-q-abstract-slider-3-e-0-54d.b7e761ae58b36fe089f1.js"],"metadata---docs-api-q-abstract-sliderdfa-ab7":["/metadata---docs-api-q-abstract-sliderdfa-ab7.73efd891b1be587b529b.js"],"content---docs-api-q-applicationd-3-e-0a3":["/content---docs-api-q-applicationd-3-e-0a3.039f8c83760f87eef546.js"],"metadata---docs-api-q-applicationc-1-d-8a4":["/metadata---docs-api-q-applicationc-1-d-8a4.dba24314be49483727c4.js"],"content---docs-api-q-check-boxd-9-b-c95":["/content---docs-api-q-check-boxd-9-b-c95.54af9594d82de2f1c65c.js"],"metadata---docs-api-q-check-box-132-293":["/metadata---docs-api-q-check-box-132-293.363eb2c9b2bdc95e76bb.js"],"content---docs-api-q-clipboard-69-d-2ef":["/content---docs-api-q-clipboard-69-d-2ef.2facddd2ce7d03c7d364.js"],"metadata---docs-api-q-clipboard-486-b21":["/metadata---docs-api-q-clipboard-486-b21.5efa03bad36d45e62cbe.js"],"content---docs-api-q-cursor-362-d51":["/content---docs-api-q-cursor-362-d51.72e3b873d390560e1917.js"],"metadata---docs-api-q-cursor-887-11e":["/metadata---docs-api-q-cursor-887-11e.af1b21b104f06148557b.js"],"content---docs-api-q-dial-80-b-99a":["/content---docs-api-q-dial-80-b-99a.facd48a52570d2fd7472.js"],"metadata---docs-api-q-dialbfb-aef":["/metadata---docs-api-q-dialbfb-aef.e5ded32011b7d6927cdc.js"],"content---docs-api-q-grid-layouta-4-e-552":["/content---docs-api-q-grid-layouta-4-e-552.f8384f91986e144a1e06.js"],"metadata---docs-api-q-grid-layout-7-db-030":["/metadata---docs-api-q-grid-layout-7-db-030.f3764e551a2bc1cf18a8.js"],"content---docs-api-q-icone-5-f-b0d":["/content---docs-api-q-icone-5-f-b0d.016d00e28e5a87f3cf94.js"],"metadata---docs-api-q-icone-6-d-093":["/metadata---docs-api-q-icone-6-d-093.1c4c72d6ff116744c296.js"],"content---docs-api-q-label-2-f-9-04b":["/content---docs-api-q-label-2-f-9-04b.9f8c2e203f083cedfdf8.js"],"metadata---docs-api-q-label-165-210":["/metadata---docs-api-q-label-165-210.1dba411adf86a92ae91f.js"],"content---docs-api-q-line-editea-0-53d":["/content---docs-api-q-line-editea-0-53d.f606b13ced935ec46509.js"],"metadata---docs-api-q-line-edit-13-f-b8a":["/metadata---docs-api-q-line-edit-13-f-b8a.df4fef6cc6001cbc07a7.js"],"content---docs-api-q-main-window-0-e-7-299":["/content---docs-api-q-main-window-0-e-7-299.7a1bf20062e23ed6c510.js"],"metadata---docs-api-q-main-window-04-f-efb":["/metadata---docs-api-q-main-window-04-f-efb.699f6e2eb1ac78330311.js"],"content---docs-api-q-pixmap-8-dd-cb2":["/content---docs-api-q-pixmap-8-dd-cb2.343e5d75db3125ddfa81.js"],"metadata---docs-api-q-pixmapfdf-820":["/metadata---docs-api-q-pixmapfdf-820.087e26967d50eb06140d.js"],"content---docs-api-q-plain-text-edit-7-c-8-081":["/content---docs-api-q-plain-text-edit-7-c-8-081.f6a618e75ea9b4f15f6b.js"],"metadata---docs-api-q-plain-text-edit-161-ecc":["/metadata---docs-api-q-plain-text-edit-161-ecc.e89eb96f17b29e76629e.js"],"content---docs-api-q-progress-barc-46-afe":["/content---docs-api-q-progress-barc-46-afe.2a5c874c4e33ecb7a2b8.js"],"metadata---docs-api-q-progress-bar-43-d-07e":["/metadata---docs-api-q-progress-bar-43-d-07e.a527e07318808cde454e.js"],"content---docs-api-q-push-button-06-c-73e":["/content---docs-api-q-push-button-06-c-73e.9e1e6d8a0e7c17941efd.js"],"metadata---docs-api-q-push-button-96-d-c92":["/metadata---docs-api-q-push-button-96-d-c92.b15a45966fb25f5f9917.js"],"content---docs-api-q-radio-buttone-54-746":["/content---docs-api-q-radio-buttone-54-746.0eceb96f43e589853010.js"],"metadata---docs-api-q-radio-button-367-f7c":["/metadata---docs-api-q-radio-button-367-f7c.11484c432455585a7ef3.js"],"content---docs-api-q-scroll-area-8-c-4-3fd":["/content---docs-api-q-scroll-area-8-c-4-3fd.fd580650b1d2ac9eee33.js"],"metadata---docs-api-q-scroll-area-46-a-96e":["/metadata---docs-api-q-scroll-area-46-a-96e.a5c480374e3f8b5fcea2.js"],"content---docs-api-q-spin-box-1-ce-bfd":["/content---docs-api-q-spin-box-1-ce-bfd.fc03e9106b39d9c9e23c.js"],"metadata---docs-api-q-spin-box-809-ae0":["/metadata---docs-api-q-spin-box-809-ae0.1fcda0244eebb91ff1bf.js"],"content---docs-api-q-tab-widget-508-95e":["/content---docs-api-q-tab-widget-508-95e.b35876b3da49da08bcb5.js"],"metadata---docs-api-q-tab-widgetebc-5aa":["/metadata---docs-api-q-tab-widgetebc-5aa.558f01cb9860e9184f4f.js"],"content---docs-api-q-widget-04-a-59f":["/content---docs-api-q-widget-04-a-59f.789a0ca241a0fb6ad49d.js"],"metadata---docs-api-q-widget-287-e6c":["/metadata---docs-api-q-widget-287-e6c.1a1aa4d570d756d63bb4.js"],"content---docs-api-qt-enumsfd-7-cf3":["/content---docs-api-qt-enumsfd-7-cf3.1eed426a340d4c937b0a.js"],"metadata---docs-api-qt-enums-423-cf9":["/metadata---docs-api-qt-enums-423-cf9.fb1940e1fff15d344906.js"],"content---docs-api-yoga-widgeta-42-cc7":["/content---docs-api-yoga-widgeta-42-cc7.d048cabe40533b903ea2.js"],"metadata---docs-api-yoga-widget-95-c-f8b":["/metadata---docs-api-yoga-widget-95-c-f8b.bdbc70e8a3ba6a1d1808.js"],"content---docs-api-process-5-ec-b1e":["/content---docs-api-process-5-ec-b1e.81baa4658f7e9a835392.js"],"metadata---docs-api-process-32-d-09e":["/metadata---docs-api-process-32-d-09e.9dd820231565148c88a2.js"],"content---docs-api-synopsis-7-bb-e1c":["/content---docs-api-synopsis-7-bb-e1c.2cede4e9cd42a20dcab1.js"],"metadata---docs-api-synopsis-21-f-a62":["/metadata---docs-api-synopsis-21-f-a62.a376081207def93aa340.js"],"content---docs-development-readme-149-437":["/content---docs-development-readme-149-437.115b92599d48666d0070.js"],"metadata---docs-development-readm-ec-6-c-332":["/metadata---docs-development-readm-ec-6-c-332.49158ed40eba176b8d72.js"],"content---docs-development-common-errorsf-15-a5b":["/content---docs-development-common-errorsf-15-a5b.e038ab8ec8bf334300fb.js"],"metadata---docs-development-common-errors-402-ef4":["/metadata---docs-development-common-errors-402-ef4.7ea9ca2120cf1ce1bce9.js"],"content---docs-development-debuggingb-54-9ed":["/content---docs-development-debuggingb-54-9ed.750c6b37dab541484a83.js"],"metadata---docs-development-debuggingc-36-26a":["/metadata---docs-development-debuggingc-36-26a.3bf9d58aef0157443ea5.js"],"content---docs-development-getting-started-139-387":["/content---docs-development-getting-started-139-387.91c824c53e601bdee051.js"],"metadata---docs-development-getting-started-89-b-c7a":["/metadata---docs-development-getting-started-89-b-c7a.863d1b0e22372d87282e.js"],"content---docs-development-setting-up-28-c-666":["/content---docs-development-setting-up-28-c-666.3ed03febaee8901fd048.js"],"metadata---docs-development-setting-up-979-75f":["/metadata---docs-development-setting-up-979-75f.8f9fc5a72c685e8d0e31.js"],"content---docs-development-signal-and-event-handling-7-d-4-f3f":["/content---docs-development-signal-and-event-handling-7-d-4-f3f.ce2b82a97ac1f368a896.js"],"metadata---docs-development-signal-and-event-handling-0-b-5-692":["/metadata---docs-development-signal-and-event-handling-0-b-5-692.b16a5b795c3eef3ce5dc.js"],"content---docs-development-styling-293-cad":["/content---docs-development-styling-293-cad.b3394daf132a97f6e2c2.js"],"metadata---docs-development-styling-1-c-2-0d6":["/metadata---docs-development-styling-1-c-2-0d6.c1ae40b22fc3b93cd6fc.js"],"content---docs-development-wrapping-widgets-84-b-538":["/content---docs-development-wrapping-widgets-84-b-538.8591cd36dcfe1c65b14a.js"],"metadata---docs-development-wrapping-widgets-303-fb8":["/metadata---docs-development-wrapping-widgets-303-fb8.bfc04ad3ffc9ee24e861.js"],"content---docs-guides-custom-nodegui-native-plugin-632-9db":["/content---docs-guides-custom-nodegui-native-plugin-632-9db.ae1162899d532c588845.js"],"metadata---docs-guides-custom-nodegui-native-plugin-92-b-12f":["/metadata---docs-guides-custom-nodegui-native-plugin-92-b-12f.184a7a6a1f10e05c6c54.js"],"content---docs-guides-debugging-in-vscodebd-7-cec":["/content---docs-guides-debugging-in-vscodebd-7-cec.a37b675eceeff564dcc8.js"],"metadata---docs-guides-debugging-in-vscodebf-8-5b0":["/metadata---docs-guides-debugging-in-vscodebf-8-5b0.d26c0a02667ed3c9416d.js"],"content---docs-guides-debuggingf-3-f-cf5":["/content---docs-guides-debuggingf-3-f-cf5.6a9f350b152e911795d0.js"],"metadata---docs-guides-debugging-970-fb8":["/metadata---docs-guides-debugging-970-fb8.4834f7c20eceaaaee536.js"],"content---docs-guides-getting-startedc-9-e-20f":["/content---docs-guides-getting-startedc-9-e-20f.058d1e127795274285bb.js"],"metadata---docs-guides-getting-started-2-b-7-1a4":["/metadata---docs-guides-getting-started-2-b-7-1a4.cfc3dec8bc5f547dfbb8.js"],"content---docs-guides-handle-events-160-4b0":["/content---docs-guides-handle-events-160-4b0.c02ea0616d11beafddb3.js"],"metadata---docs-guides-handle-events-5-eb-540":["/metadata---docs-guides-handle-events-5-eb-540.61bb8e8da8eeda4cc040.js"],"content---docs-guides-images-991-065":["/content---docs-guides-images-991-065.914359cdc22f4b9051ef.js"],"metadata---docs-guides-images-915-5ee":["/metadata---docs-guides-images-915-5ee.175b82933d61d3e5deb4.js"],"content---docs-guides-layoutdf-5-a64":["/content---docs-guides-layoutdf-5-a64.bbcbc44e5156b817cb02.js"],"metadata---docs-guides-layoutf-65-d7d":["/metadata---docs-guides-layoutf-65-d7d.3bdf6df942a2264f480b.js"],"content---docs-guides-networking-374-03e":["/content---docs-guides-networking-374-03e.17133e9de15be6e64aff.js"],"metadata---docs-guides-networkingdfd-ce0":["/metadata---docs-guides-networkingdfd-ce0.332c039b051021fe2724.js"],"content---docs-guides-nodegui-architecture-262-19e":["/content---docs-guides-nodegui-architecture-262-19e.245edae39f1ddac01224.js"],"metadata---docs-guides-nodegui-architecture-550-b82":["/metadata---docs-guides-nodegui-architecture-550-b82.72d9e2773d4e285ca973.js"],"content---docs-guides-scroll-view-76-e-87c":["/content---docs-guides-scroll-view-76-e-87c.73c89be82bf124b2e125.js"],"metadata---docs-guides-scroll-view-9-a-9-2ac":["/metadata---docs-guides-scroll-view-9-a-9-2ac.f6039a7dd2d1fa4c6ca6.js"],"content---docs-guides-stylingfec-977":["/content---docs-guides-stylingfec-977.c0e2691c9103260d4124.js"],"metadata---docs-guides-styling-9-ea-213":["/metadata---docs-guides-styling-9-ea-213.d5570c147002ef8e6bfe.js"],"content---docs-guides-tutoriale-53-6ab":["/content---docs-guides-tutoriale-53-6ab.3001eaf77a6eeaf068aa.js"],"metadata---docs-guides-tutorial-1-f-1-23b":["/metadata---docs-guides-tutorial-1-f-1-23b.4e417b24befa6a685ab5.js"],"content---docs-guides-using-native-node-modules-3-ab-104":["/content---docs-guides-using-native-node-modules-3-ab-104.3bc40951d03693eaff7d.js"],"metadata---docs-guides-using-native-node-modules-31-f-551":["/metadata---docs-guides-using-native-node-modules-31-f-551.0accd417ae132a661bdf.js"],"component---theme-blog-tags-posts-page-687-b6c":["/component---theme-blog-tags-posts-page-687-b6c.7cbecfb8c53ab9b2f9ba.js"],"metadata---blog-tags-nodegui-632-d46":["/metadata---blog-tags-nodegui-632-d46.73df93301c6a1152b2fe.js"],"metadata---blog-tags-hellob-02-3e8":["/metadata---blog-tags-hellob-02-3e8.cdf356c9ee24382e453e.js"],"component---theme-blog-tags-list-page-01-a-d0b":["/component---theme-blog-tags-list-page-01-a-d0b.f9af53c8c6b12587c378.js"],"tags---blog-tags-8-d-7-36d":["/tags---blog-tags-8-d-7-36d.1243f2728e886299c73e.js"]};/*]]>*/</script>
<title data-react-helmet="true">NodeWidget</title>
<meta data-react-helmet="true" charset="utf-8"/><meta data-react-helmet="true" http-equiv="x-ua-compatible" content="ie=edge"/><meta data-react-helmet="true" name="viewport" content="width=device-width"/><meta data-react-helmet="true" property="og:title" content="NodeWidget"/><meta data-react-helmet="true" name="description" content="&gt; Abstract class to add functionalities common to all Widgets."/><meta data-react-helmet="true" property="og:description" content="&gt; Abstract class to add functionalities common to all Widgets."/><meta data-react-helmet="true" property="og:url" content="https://nodegui.org/docs/api/NodeWidget"/><meta data-react-helmet="true" name="twitter:card" content="summary"/>
<link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="/main.f66713773e9ba37b90fe.css" />
<link rel="stylesheet" type="text/css" href="/1.196ce05925ea6d776920.css" />
<link rel="stylesheet" type="text/css" href="/2.702de9bbb01fe4f46fa1.css" />
<link rel="stylesheet" type="text/css" href="/component---theme-doc-legacy-page-9-e-7-ca5.3c38a2f40a51efdd72a0.css" />
<link rel="stylesheet" type="text/css" href="/component---theme-doc-legacy-item-031-769.1f1ce10374de019f5d3a.css" />
</head>
<body >
<div id="__docusaurus">
<nav class="navbar navbar--light navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><div aria-label="Navigation bar toggle" class="navbar__toggle" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30" role="img" focusable="false"><title>Menu</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></div><a aria-current="page" class="navbar__brand active" href="/"><img class="navbar__logo" src="/img/logo-circle.png" alt="NodeGui Logo"/><strong>NodeGui</strong></a></div><div class="navbar__items navbar__items--right"><a class="navbar__item navbar__link" label="Docs" position="right" href="/docs/guides/getting-started">Docs</a><a class="navbar__item navbar__link" label="API" position="right" href="/docs/api/QApplication">API</a><a class="navbar__item navbar__link" label="Blog" position="right" href="/blog">Blog</a><a class="navbar__item navbar__link" href="https://github.com/nodegui/nodegui" label="GitHub" position="right" target="_blank" rel="noopener noreferrer">GitHub</a><div class="react-toggle displayOnlyInLargeViewport_1gtM"><div class="react-toggle-track"><div class="react-toggle-track-check"><span class="toggle_16vC moon_1N64"></span></div><div class="react-toggle-track-x"><span class="toggle_16vC sun_3CZP"></span></div></div><div class="react-toggle-thumb"></div><input type="checkbox" aria-label="Dark mode toggle" class="react-toggle-screenreader-only"/></div></div></div><div role="presentation" class="navbar__sidebar__backdrop"></div><div class="navbar__sidebar"><div class="navbar__sidebar__brand"><a aria-current="page" class="navbar__brand active" href="/"><img class="navbar__logo" src="/img/logo-circle.png" alt="NodeGui Logo"/><strong>NodeGui</strong></a></div><div class="navbar__sidebar__items"><div class="menu"><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" label="Docs" position="right" href="/docs/guides/getting-started">Docs</a></li><li class="menu__list-item"><a class="menu__link" label="API" position="right" href="/docs/api/QApplication">API</a></li><li class="menu__list-item"><a class="menu__link" label="Blog" position="right" href="/blog">Blog</a></li><li class="menu__list-item"><a class="menu__link" href="https://github.com/nodegui/nodegui" label="GitHub" position="right" target="_blank" rel="noopener noreferrer">GitHub</a></li></ul></div></div></div></nav><div class="container container--fluid"><div class="row"><div class="col col--3"><div class="sidebar_Qb2S"><div class="menu menu--responsive"><button aria-label="Open Menu" class="button button--secondary button--sm menu__button" type="button"><svg class="sidebarMenuIcon_1uhT" xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 32 32" role="img" focusable="false"><title>Menu</title><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="#!">General</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="/docs/api/synopsis">Synopsis</a></li></ul></li><li class="menu__list-item"><a class="menu__link" href="#!">Widgets</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="/docs/api/QApplication">QApplication</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QCheckBox">QCheckBox</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QDial">QDial</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QIcon">QIcon</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QLabel">QLabel</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QLineEdit">QLineEdit</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QMainWindow">QMainWindow</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QPlainTextEdit">QPlainTextEdit</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QProgressBar">QProgressBar</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QPushButton">QPushButton</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QRadioButton">QRadioButton</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QScrollArea">QScrollArea</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QSpinBox">QSpinBox</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QTabWidget">QTabWidget</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QWidget">QWidget</a></li></ul></li><li class="menu__list-item"><a class="menu__link" href="#!">Layouts</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="/docs/api/FlexLayout">FlexLayout</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QGridLayout">QGridLayout</a></li></ul></li><li class="menu__list-item"><a class="menu__link" href="#!">Modules</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="/docs/api/QClipboard">QClipboard</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QCursor">QCursor</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QPixmap">QPixmap</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QtEnums">Qt Enums</a></li></ul></li><li class="menu__list-item"><a class="menu__link" href="#!">Internal Modules</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="/docs/api/Component">Component</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/EventWidget">EventWidget</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/NodeLayout">NodeLayout</a></li><li class="menu__list-item"><a aria-current="page" class="menu__link menu__link--active" href="/docs/api/NodeWidget">NodeWidget</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/YogaWidget">YogaWidget</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QAbstractScrollArea">QAbstractScrollArea</a></li><li class="menu__list-item"><a class="menu__link" href="/docs/api/QAbstractSlider">QAbstractSlider</a></li></ul></li><li class="menu__list-item"><a class="menu__link" href="#!">APIs</a><ul class="menu__list"><li class="menu__list-item"><a class="menu__link" href="/docs/api/process">process</a></li></ul></li></ul></div></div></div><main class="col"><div><div class="padding-vert--lg"><div class="row"><div class="col"><div class="docItemContainer_3Gws"><header><h1 class="margin-bottom--lg">NodeWidget</h1></header><article><div class="markdown"><blockquote><p>Abstract class to add functionalities common to all Widgets.</p></blockquote><p><strong>This class implements all methods, properties of Qt&#x27;s <a href="https://doc.qt.io/qt-5/qwidget.html">QWidget class</a> so that it can be inherited by all widgets</strong></p><p><code>NodeWidget</code> is an abstract class and hence no instances of the same should be created. It exists so that we can add similar functionalities to all widget&#x27;s easily. Additionally it helps in typechecking process. If you wish to create a <code>div</code> like widget use <a href="/docs/api/QWidget">QWidget</a> instead.</p><p><strong>NodeWidget is the base class for all widgets. It inherits from another abstract class <a href="/docs/api/EventWidget">EventWidget</a></strong></p><h3><a aria-hidden="true" class="anchor" id="example"></a><a aria-hidden="true" class="hash-link" href="#example">#</a>Example</h3><pre class="mdxCodeBlock_iHAB"><div class="codeBlockWrapper_2QGZ"><pre class="prism-code language-javascript codeBlock_19pQ" style="color:#d6deeb;background-color:#011627"><div class="token-line" style="color:#d6deeb"><span class="token keyword" style="color:rgb(127, 219, 202)">const</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token maybe-class-name">NodeWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token maybe-class-name">QPushButton</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token maybe-class-name">QWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">,</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> </span><span class="token maybe-class-name">QRadioButton</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token plain"> </span><span class="token operator" style="color:rgb(127, 219, 202)">=</span><span class="token plain"> </span><span class="token function" style="color:rgb(130, 170, 255)">require</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token string" style="color:rgb(173, 219, 103)">&quot;@nodegui/nodegui&quot;</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain" style="display:inline-block"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token comment" style="color:rgb(99, 119, 119);font-style:italic">// showWidget can accept any widget since it expects NodeWidget</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token keyword" style="color:rgb(127, 219, 202)">const</span><span class="token plain"> </span><span class="token function-variable function" style="color:rgb(130, 170, 255)">showWidget</span><span class="token plain"> </span><span class="token operator" style="color:rgb(127, 219, 202)">=</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token parameter">widget</span><span class="token parameter punctuation" style="color:rgb(199, 146, 234)">:</span><span class="token parameter"> NodeWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token plain"> </span><span class="token arrow operator" style="color:rgb(127, 219, 202)">=&gt;</span><span class="token plain"> </span><span class="token punctuation" style="color:rgb(199, 146, 234)">{</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"> widget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">.</span><span class="token method function property-access" style="color:rgb(130, 170, 255)">show</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token punctuation" style="color:rgb(199, 146, 234)">}</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain" style="display:inline-block"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token function" style="color:rgb(130, 170, 255)">showWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token keyword" style="color:rgb(127, 219, 202)">new</span><span class="token plain"> </span><span class="token class-name" style="color:rgb(255, 203, 139)">QPushButton</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token function" style="color:rgb(130, 170, 255)">showWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token keyword" style="color:rgb(127, 219, 202)">new</span><span class="token plain"> </span><span class="token class-name" style="color:rgb(255, 203, 139)">QWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span><span class="token plain"></span></div><div class="token-line" style="color:#d6deeb"><span class="token plain"></span><span class="token function" style="color:rgb(130, 170, 255)">showWidget</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token keyword" style="color:rgb(127, 219, 202)">new</span><span class="token plain"> </span><span class="token class-name" style="color:rgb(255, 203, 139)">QRadioButton</span><span class="token punctuation" style="color:rgb(199, 146, 234)">(</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">)</span><span class="token punctuation" style="color:rgb(199, 146, 234)">;</span></div></pre><button type="button" aria-label="Copy code to clipboard" class="copyButton_1BYj">Copy</button></div></pre><p>NodeWidget will list all methods and properties that are common to all widgets in the NodeGui world.</p><h2><a aria-hidden="true" class="anchor" id="static-methods"></a><a aria-hidden="true" class="hash-link" href="#static-methods">#</a>Static Methods</h2><p>NodeWidget can access all the static methods defined in <a href="/docs/api/EventWidget">EventWidget</a></p><h2><a aria-hidden="true" class="anchor" id="instance-properties"></a><a aria-hidden="true" class="hash-link" href="#instance-properties">#</a>Instance Properties</h2><p>NodeWidget can access all the instance properties defined in <a href="/docs/api/EventWidget">EventWidget</a></p><p>Additionally it also has the following instance properties:</p><h3><a aria-hidden="true" class="anchor" id="widgetlayout"></a><a aria-hidden="true" class="hash-link" href="#widgetlayout">#</a><code>widget.layout</code></h3><p>A <code>NodeLayout</code> representing current layout that is set on the widget.</p><h3><a aria-hidden="true" class="anchor" id="widgettype"></a><a aria-hidden="true" class="hash-link" href="#widgettype">#</a><code>widget.type</code></h3><p>This will return the string <code>widget</code> for all widgets.</p><h2><a aria-hidden="true" class="anchor" id="instance-methods"></a><a aria-hidden="true" class="hash-link" href="#instance-methods">#</a>Instance Methods</h2><p>NodeWidget can access all the instance methods defined in <a href="/docs/api/EventWidget">EventWidget</a></p><p>Additionally it also has the following instance methods:</p><h3><a aria-hidden="true" class="anchor" id="widgetshow"></a><a aria-hidden="true" class="hash-link" href="#widgetshow">#</a><code>widget.show()</code></h3><p>Shows the widget and its children. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#show">QWidget: show</a>.</p><h3><a aria-hidden="true" class="anchor" id="widgetresizewidth-height"></a><a aria-hidden="true" class="hash-link" href="#widgetresizewidth-height">#</a><code>widget.resize(width, height)</code></h3><p>Resizes the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#resize-1">QWidget: resize</a>.</p><ul><li><code>width</code> number - Pixels.</li><li><code>height</code> number - Pixels.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetclose"></a><a aria-hidden="true" class="hash-link" href="#widgetclose">#</a><code>widget.close()</code></h3><p>Closes this widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#close">QWidget: close</a>.
Returns true if the widget was closed; otherwise returns false.</p><h3><a aria-hidden="true" class="anchor" id="widgetsetlayoutlayout"></a><a aria-hidden="true" class="hash-link" href="#widgetsetlayoutlayout">#</a><code>widget.setLayout(layout)</code></h3><p>Sets the layout manager for this widget to layout. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setLayout">QWidget: setLayout</a>.</p><ul><li><code>layout</code> NodeLayout - Any layout that inherits from NodeLayout class.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetstylesheetstylesheet"></a><a aria-hidden="true" class="hash-link" href="#widgetsetstylesheetstylesheet">#</a><code>widget.setStyleSheet(styleSheet)</code></h3><p>Sets the property that holds the widget&#x27;s style sheet. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#styleSheet-prop">QWidget: styleSheet</a>.</p><ul><li><code>styleSheet</code> string - String which holds the widget&#x27;s style sheet. Make sure you create this string using <code>StyleSheet.create()</code></li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetcursorcursor"></a><a aria-hidden="true" class="hash-link" href="#widgetsetcursorcursor">#</a><code>widget.setCursor(cursor)</code></h3><p>Sets the window mouse cursor. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#cursor-prop">QWidget: setCursor</a>.</p><ul><li><code>cursor</code> CursorShape - Specifies current cursor for the window <a href="/docs/api/QtEnums">CursorShape is an enum from Qt</a></li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetwindowiconicon"></a><a aria-hidden="true" class="hash-link" href="#widgetsetwindowiconicon">#</a><code>widget.setWindowIcon(icon)</code></h3><p>Sets the window icon. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#windowIcon-prop">QWidget: setWindowIcon</a>.</p><ul><li><code>icon</code> QIcon - Specifies icon for the window.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetwindowstatestate"></a><a aria-hidden="true" class="hash-link" href="#widgetsetwindowstatestate">#</a><code>widget.setWindowState(state)</code></h3><p>Sets the window state. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setWindowState">QWidget: setWindowState</a>.</p><ul><li><code>state</code> WindowState - Specifies current state for the window <a href="/docs/api/QtEnums">WindowState is an enum from Qt</a></li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetwindowtitletitle"></a><a aria-hidden="true" class="hash-link" href="#widgetsetwindowtitletitle">#</a><code>widget.setWindowTitle(title)</code></h3><p>Sets the window title property. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#windowTitle-prop">QWidget: setWindowTitle</a>.</p><ul><li><code>title</code> string - String which holds the windows title.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetstylesheet"></a><a aria-hidden="true" class="hash-link" href="#widgetstylesheet">#</a><code>widget.styleSheet()</code></h3><p>Gets the property that holds the widget&#x27;s style sheet. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#styleSheet-prop">QWidget: styleSheet</a>.</p><h3><a aria-hidden="true" class="anchor" id="widgethide"></a><a aria-hidden="true" class="hash-link" href="#widgethide">#</a><code>widget.hide()</code></h3><p>Hides the widget and its children. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#hide">QWidget: hide</a>.</p><h3><a aria-hidden="true" class="anchor" id="widgetmovex-y"></a><a aria-hidden="true" class="hash-link" href="#widgetmovex-y">#</a><code>widget.move(x, y)</code></h3><p>Sets the screen position of the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#move-1">QWidget: move</a>.</p><ul><li><code>x</code> number - Pixels.</li><li><code>y</code> number - Pixels.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetobjectnameobjectname"></a><a aria-hidden="true" class="hash-link" href="#widgetsetobjectnameobjectname">#</a><code>widget.setObjectName(objectName)</code></h3><p>Sets the object name of the widget in Qt. It calls the native method <a href="https://doc.qt.io/qt-5/qobject.html#objectName-prop">QObject: setObjectName</a>. Object name can be analogous to <code>id</code> of an element in the web world. Using the objectName of the widget one can reference it in the Qt&#x27;s stylesheet much like what we do with id in the web world.</p><ul><li><code>objectName</code> string - String which holds the widget&#x27;s object name.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetobjectname"></a><a aria-hidden="true" class="hash-link" href="#widgetobjectname">#</a><code>widget.objectName()</code></h3><p>Gets the property that holds the widget&#x27;s object name. It calls the native method <a href="https://doc.qt.io/qt-5/qobject.html#objectName-prop">QObject: setObjectName</a>.</p><h3><a aria-hidden="true" class="anchor" id="widgetsetmousetrackingismousetracked"></a><a aria-hidden="true" class="hash-link" href="#widgetsetmousetrackingismousetracked">#</a><code>widget.setMouseTracking(isMouseTracked)</code></h3><p>Sets the property that tells whether mouseTracking is enabled for the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#mouseTracking-prop">QWidget: mouseTracking</a>.</p><ul><li><code>isMouseTracked</code> boolean - Set it to true to enable mouse tracking.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetenabledenabled"></a><a aria-hidden="true" class="hash-link" href="#widgetsetenabledenabled">#</a><code>widget.setEnabled(enabled)</code></h3><p>Sets the property that tells whether the widget is enabled. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#enabled-prop">QWidget: enabled</a>. In general an enabled widget handles keyboard and mouse events; a disabled widget does not.</p><ul><li><code>enabled</code> boolean - Set it to true to enable the widget.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetfixedsizewidth-height"></a><a aria-hidden="true" class="hash-link" href="#widgetsetfixedsizewidth-height">#</a><code>widget.setFixedSize(width, height)</code></h3><p>Sets both the minimum and maximum sizes of the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setFixedSize">QWidget: setFixedSize</a>.</p><ul><li><code>width</code> number - Pixels.</li><li><code>height</code> number - Pixels.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetgeometryx-y-width-height"></a><a aria-hidden="true" class="hash-link" href="#widgetsetgeometryx-y-width-height">#</a><code>widget.setGeometry(x, y, width, height)</code></h3><p>Sets the screen position as well as size of the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setGeometry-1">QWidget: setGeometry</a>.</p><ul><li><code>x</code> number - Pixels.</li><li><code>y</code> number - Pixels.</li><li><code>width</code> number - Pixels.</li><li><code>height</code> number - Pixels.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetmaximumsizewidth-height"></a><a aria-hidden="true" class="hash-link" href="#widgetsetmaximumsizewidth-height">#</a><code>widget.setMaximumSize(width, height)</code></h3><p>Sets the maximum size of the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setMaximumSize-1">QWidget: setMaximumSize</a>.</p><ul><li><code>width</code> number - Pixels.</li><li><code>height</code> number - Pixels.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetsetminimumsizewidth-height"></a><a aria-hidden="true" class="hash-link" href="#widgetsetminimumsizewidth-height">#</a><code>widget.setMinimumSize(width, height)</code></h3><p>Sets the minimum size of the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setMinimumSize-1">QWidget: setMinimumSize</a>.</p><ul><li><code>width</code> number - Pixels.</li><li><code>height</code> number - Pixels.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgetrepaint"></a><a aria-hidden="true" class="hash-link" href="#widgetrepaint">#</a><code>widget.repaint()</code></h3><p>Repaints the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#repaint">QWidget: repaint</a>.</p><h3><a aria-hidden="true" class="anchor" id="widgetupdate"></a><a aria-hidden="true" class="hash-link" href="#widgetupdate">#</a><code>widget.update()</code></h3><p>Updates the widget. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#update">QWidget: update</a>.</p><h3><a aria-hidden="true" class="anchor" id="widgetpos"></a><a aria-hidden="true" class="hash-link" href="#widgetpos">#</a><code>widget.pos()</code></h3><p>returns the current widget position. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#pos-prop">QWidget: pos</a>. The returned size object contains x and y coordinates in pixels.</p><h3><a aria-hidden="true" class="anchor" id="widgetsize"></a><a aria-hidden="true" class="hash-link" href="#widgetsize">#</a><code>widget.size()</code></h3><p>returns the current widget size. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#size-prop">QWidget: size</a>. The returned size object contains width and height in pixels.</p><h3><a aria-hidden="true" class="anchor" id="widgetupdategeometry"></a><a aria-hidden="true" class="hash-link" href="#widgetupdategeometry">#</a><code>widget.updateGeometry()</code></h3><p>Notifies the layout system that this widget has changed and may need to change geometry.</p><h3><a aria-hidden="true" class="anchor" id="widgetsetattributeattributename-switchon"></a><a aria-hidden="true" class="hash-link" href="#widgetsetattributeattributename-switchon">#</a><code>widget.setAttribute(attributeName, switchOn)</code></h3><p>Sets the attribute attribute on this widget if on is true; otherwise clears the attribute. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#setAttribute">QWidget: setAttribute</a>.</p><ul><li><code>attributeName</code> WidgetAttribute - Enum from WidgetAttribute.</li><li><code>switchOn</code> - set it to true if you want to enable an attribute.</li></ul><h3><a aria-hidden="true" class="anchor" id="widgettestattributeattributename"></a><a aria-hidden="true" class="hash-link" href="#widgettestattributeattributename">#</a><code>widget.testAttribute(attributeName)</code></h3><p>Returns true if attribute attribute is set on this widget; otherwise returns false. It calls the native method <a href="https://doc.qt.io/qt-5/qwidget.html#testAttribute">QWidget: testAttribute</a>.</p><ul><li><code>attributeName</code> WidgetAttribute - Enum from WidgetAttribute.</li></ul></div></article><div class="margin-top--xl margin-bottom--lg"><nav class="pagination-nav"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/api/NodeLayout"><h5 class="pagination-nav__link--sublabel">Previous</h5><h4 class="pagination-nav__link--label">« <!-- -->NodeLayout</h4></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/api/YogaWidget"><h5 class="pagination-nav__link--sublabel">Next</h5><h4 class="pagination-nav__link--label">YogaWidget<!-- --> »</h4></a></div></nav></div></div></div><div class="col col--3"><div class="tableOfContents_2wxO"><ul class="contents contents__left-border"><li><a href="#example" class="contents__link">Example</a></li><li><a href="#static-methods" class="contents__link">Static Methods</a></li><li><a href="#instance-properties" class="contents__link">Instance Properties</a><ul class=""><li><a href="#widgetlayout" class="contents__link">widget.layout</a></li><li><a href="#widgettype" class="contents__link">widget.type</a></li></ul></li><li><a href="#instance-methods" class="contents__link">Instance Methods</a><ul class=""><li><a href="#widgetshow" class="contents__link">widget.show()</a></li><li><a href="#widgetresizewidth-height" class="contents__link">widget.resize(width, height)</a></li><li><a href="#widgetclose" class="contents__link">widget.close()</a></li><li><a href="#widgetsetlayoutlayout" class="contents__link">widget.setLayout(layout)</a></li><li><a href="#widgetsetstylesheetstylesheet" class="contents__link">widget.setStyleSheet(styleSheet)</a></li><li><a href="#widgetsetcursorcursor" class="contents__link">widget.setCursor(cursor)</a></li><li><a href="#widgetsetwindowiconicon" class="contents__link">widget.setWindowIcon(icon)</a></li><li><a href="#widgetsetwindowstatestate" class="contents__link">widget.setWindowState(state)</a></li><li><a href="#widgetsetwindowtitletitle" class="contents__link">widget.setWindowTitle(title)</a></li><li><a href="#widgetstylesheet" class="contents__link">widget.styleSheet()</a></li><li><a href="#widgethide" class="contents__link">widget.hide()</a></li><li><a href="#widgetmovex-y" class="contents__link">widget.move(x, y)</a></li><li><a href="#widgetsetobjectnameobjectname" class="contents__link">widget.setObjectName(objectName)</a></li><li><a href="#widgetobjectname" class="contents__link">widget.objectName()</a></li><li><a href="#widgetsetmousetrackingismousetracked" class="contents__link">widget.setMouseTracking(isMouseTracked)</a></li><li><a href="#widgetsetenabledenabled" class="contents__link">widget.setEnabled(enabled)</a></li><li><a href="#widgetsetfixedsizewidth-height" class="contents__link">widget.setFixedSize(width, height)</a></li><li><a href="#widgetsetgeometryx-y-width-height" class="contents__link">widget.setGeometry(x, y, width, height)</a></li><li><a href="#widgetsetmaximumsizewidth-height" class="contents__link">widget.setMaximumSize(width, height)</a></li><li><a href="#widgetsetminimumsizewidth-height" class="contents__link">widget.setMinimumSize(width, height)</a></li><li><a href="#widgetrepaint" class="contents__link">widget.repaint()</a></li><li><a href="#widgetupdate" class="contents__link">widget.update()</a></li><li><a href="#widgetpos" class="contents__link">widget.pos()</a></li><li><a href="#widgetsize" class="contents__link">widget.size()</a></li><li><a href="#widgetupdategeometry" class="contents__link">widget.updateGeometry()</a></li><li><a href="#widgetsetattributeattributename-switchon" class="contents__link">widget.setAttribute(attributeName, switchOn)</a></li><li><a href="#widgettestattributeattributename" class="contents__link">widget.testAttribute(attributeName)</a></li></ul></li></ul></div></div></div></div></div></main></div></div>
</div>
<script type="text/javascript" src="/runtime~main.b0186ad8ee6d73168ac3.js"></script>
<script type="text/javascript" src="/main.00ae184f6d3bd0eadbce.js"></script>
<script type="text/javascript" src="/0.821df7f17f7288aebb5e.js"></script>
<script type="text/javascript" src="/1.9b3d421a0f44576af60f.js"></script>
<script type="text/javascript" src="/2.27a81c22b5dfa23bfe9b.js"></script>
<script type="text/javascript" src="/component---theme-doc-legacy-page-9-e-7-ca5.d31182005d6c21dd63ac.js"></script>
<script type="text/javascript" src="/docsMetadata---docs-150-2d6.a4a03dc8ae50b1fa60b5.js"></script>
<script type="text/javascript" src="/component---theme-doc-legacy-item-031-769.6e8a6ea08d218712d94a.js"></script>
<script type="text/javascript" src="/content---docs-api-node-widget-080-a39.e39bcda58fa051ef8f58.js"></script>
<script type="text/javascript" src="/metadata---docs-api-node-widgeta-92-a4f.dc800d76f7062b65b2ed.js"></script>
</body>
</html>