2.7 KiB
NodeGUI
nodegui installation as whole
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/
-
More
Selectable Text
Closed
MistahMojo opened this issue on Jun 20, 2020 · 5 comments
Closed
Selectable Text#236
MistahMojo opened this issue on Jun 20, 2020 · 5 comments
Comments
Contributor
MistahMojo commented on Jun 20, 2020 • 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 commented on Jun 20, 2020 • edited
Hey **@MistahMojo**Seems like textInteractionFlag is a property
In case of nodegui you could do:
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
1comes from https://doc.qt.io/qt-5/qt.html#TextInteractionFlag-enum
-