joplin-notes/Export-9fad9947-5bd5-4195-952b-6512c5a4beb1/Web development 83dd4e6675f04ba782a6865a434a0598/NodeJS 6d499253059041d699e2e6fa36ded013/NodeGUI ac8ad0b3e1a74e0ca752c60add16e6ce.md
2026-11-04 00:33:23 +05:30

97 lines
No EOL
2.7 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# NodeGUI
[https://react.nodegui.org/](https://react.nodegui.org/)
nodegui installation as whole
[https://www.notion.so/notesharsh/study-private-aa2fff89ee2b4525a6028f9b16de137f#dc0e5ebfc97f45619a4f4573fae5172f](../../../undefined)
[](../../../undefined)
```
git clone https://github.com/nodegui/react-nodegui-starter
```
```
cd react-nodegui-starter
```
```
npm install
```
```
npm run dev
```
```
npm start
```
for react nodegui preinstall requirements:
1: qt minimal framework(default no additional options)
2: visual studio 2017 and choose msvc 2017 build tools
3 and windows 8.1 sdk
- nodegui api
[https://docs.nodegui.org/docs/api/generated/classes/qwidget/](https://docs.nodegui.org/docs/api/generated/classes/qwidget/)
[https://docs.nodegui.org/docs/api/generated/classes/qwidget/](https://docs.nodegui.org/docs/api/generated/classes/qwidget/)
- More
# Selectable Text
**Closed**
**[MistahMojo](https://github.com/MistahMojo)** opened this issue on Jun 20, 2020 · 5 comments
**Closed**
# **[Selectable Text](https://github.com/nodegui/react-nodegui/issues/236#top)#236**
**[MistahMojo](https://github.com/MistahMojo)** opened this issue on Jun 20, 2020 · 5 comments
# **Comments**
**Contributor**
### **[MistahMojo](https://github.com/MistahMojo)** commented [on Jun 20, 2020](https://github.com/nodegui/react-nodegui/issues/236#issue-642339668) • edited
Hello, is there a way to make the Text widget selectable by the user?
Is this a 'missing' feature or do the docs just not cover this?
---
**Collaborator**
### **[a7ul](https://github.com/a7ul)** commented [on Jun 20, 2020](https://github.com/nodegui/react-nodegui/issues/236#issuecomment-646983689) • edited
Hey **[@MistahMojo](https://github.com/MistahMojo)**Seems like textInteractionFlag is a property
In case of nodegui you could do:
```tsx
import { QMainWindow, QLabel } from '@nodegui/nodegui';
const win = new QMainWindow();
win.resize(500, 500);
const label = new QLabel();
label.setText('Yolo 12321312 313123');
label.setProperty('textInteractionFlags', 1);
win.setCentralWidget(label);
win.show();
(global as any).win = win;
```
Where value `1` comes from [https://doc.qt.io/qt-5/qt.html#TextInteractionFlag-enum](https://doc.qt.io/qt-5/qt.html#TextInteractionFlag-enum)
---