Can't found a way to use QKeyEvent

オープン
#992 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, nodejs
領域
desktop

調査の方向性

Reproduce the example from index.js:172 and inspect dist/lib/QtGui/QEvent/QKeyEvent.js, then compare it with the existing QKeyEvent documentation. Determine whether the missing guidance or the reported native callback needs addressing; done means the supported usage is clear and the example no longer produces the reported error.

索引モデルが issue の本文から書いたものです。

説明

Hello, i've trying to use QKeyEvent with QTextEdit but can't found a way to even make a variable with QKeyEvent propierties.

The related code:

const {
 QKeyEvent
} = require("@nodegui/nodegui");
const keyPressEvent = new QKeyEvent();

The error:

C:\Users\amail\Desktop\project\node_modules\@nodegui\nodegui\dist\lib\QtGui\QEvent\QKeyEvent.js:11
        super(new addon_1.default.QKeyEvent(event));
              ^

Error: Error in native callback
    at new QKeyEvent (C:\Users\amail\Desktop\project\node_modules\@nodegui\nodegui\dist\lib\QtGui\QEvent\QKeyEvent.js:11:15)
    at Object.<anonymous> (C:\Users\amail\Desktop\project\index.js:172:23)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Expected behavior
No error in console log.

Desktop (please complete the following information):

  • OS: Windows 11
  • NodeGUI version: v0.58.0-rc4

Additional context
I already read the documentation but since has not examples don't help me much.

主要言語
C++
スター
9.2k
フォーク
315
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodegui/nodegui のほかの issue

nodegui/nodegui の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。