97 lines
No EOL
2.7 KiB
Markdown
97 lines
No EOL
2.7 KiB
Markdown
# 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)
|
||
|
||
--- |