Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
Dialogs show again; the capture frame rate sticks as it is typed
Veyra Goal Agent25fe3e94c166
diff --git a/qml/Veyra/DialogHost.qml b/qml/Veyra/DialogHost.qmlindex ff098114..9cf87509 100644--- a/qml/Veyra/DialogHost.qml+++ b/qml/Veyra/DialogHost.qml@@ -88,7 +88,9 @@ Item {// A closed dialog leaves the scene. Its live bindings (capture preview, fps text)// kept changing while hidden and Qt redrew the window for each change, ~40 times// a second during capture; OBS game capture then held the UI instead of the video.- parent: visible ? host : null+ // Keyed on shown/opacity, never on visible: an item without a parent always+ // reads invisible, so "visible ? host : null" never brought a dialog back.+ parent: (shown || opacity > 0) ? host : nullBehavior on opacity { NumberAnimation { duration: Theme.d(200) } }transform: [Scale { origin.x: dlg.width / 2; origin.y: dlg.height / 2; xScale: dlg.motionS; yScale: dlg.motionS },@@ -358,6 +360,13 @@ Item {implicitWidth: 100text: String(veyra.captureRequestedFps)onEdited: text => veyra.captureRequestedFps = Number(text)+ // Take a valid rate as it is typed. Only a canonical number ("59.94", not+ // "59.") so the field's binding never rewrites what is still being typed.+ onTyped: text => {+ const n = Number(text.trim())+ if (text.trim().length > 0 && String(n) === text.trim() && (n === 0 || (n >= 1 && n <= 1000)))+ veyra.captureRequestedFps = n+ }}}}@@ -1929,6 +1938,9 @@ Item {property string placeholder: ""property alias text: field.textsignal edited(string text)+ // Every keystroke. editingFinished alone needs Enter or a focus change: typing a+ // value and clicking 连接 (which takes no focus) or closing the dialog lost it.+ signal typed(string text)implicitHeight: 30radius: 9color: Qt.rgba(1, 1, 1, 0.04)@@ -1945,6 +1957,7 @@ Item {font.pixelSize: Theme.fsBodyselectByMouse: trueonEditingFinished: parent.edited(text)+ onTextEdited: parent.typed(text)}Text {anchors.verticalCenter: parent.verticalCenterdiff --git a/scripts/ui-check/capture-fps-typed.qml b/scripts/ui-check/capture-fps-typed.qmlnew file mode 100644index 00000000..4125888f--- /dev/null+++ b/scripts/ui-check/capture-fps-typed.qml@@ -0,0 +1,61 @@++ // ---- capture dialog: a typed device frame rate must stick without Enter or a focus change ----+ function uitestFind(item, name) {+ if (!item) return null+ if (item.objectName === name) return item+ const kids = item.children || []+ for (let k = 0; k < kids.length; ++k) { const f = uitestFind(kids[k], name); if (f) return f }+ return null+ }+ Connections { target: dialogs; function onDialogChanged() { veyra.logUi("uitest", "UITEST_NOTE dialog=" + dialogs.dialog + " stack=" + String(new Error().stack).split(String.fromCharCode(10)).join(" | ")) } }+ Timer { interval: 150; running: true; repeat: true; onTriggered: veyra.logUi("uitest-tick", "") }+ Timer {+ interval: 1000; running: true; repeat: true+ property int ticks: 0+ onTriggered: {+ ++ticks+ if (ticks === 2) dialogs.open("capture")+ if (ticks === 4) {+ const f = uitestFind(dialogs, "capture-fps")+ if (!f) {+ const names = []+ const walk = (it, d) => { if (!it || d > 40) return; if (it.objectName) names.push(it.objectName); for (const c of (it.children || [])) walk(c, d + 1) }+ walk(dialogs, 0)+ const kids = dialogs.children+ let first = []+ for (let k = 0; k < kids.length; ++k) first.push(String(kids[k]) + ":" + kids[k].objectName + ":" + kids[k].visible)+ veyra.logUi("uitest", "UITEST_NOTE kids=" + kids.length + " " + first.join(" | "))+ veyra.logUi("uitest", "UITEST_FAIL no fps field; dialog=" + dialogs.dialog + " names=" + names.join(","))+ running = false; return+ }+ const p = f.mapToGlobal(f.width / 2, f.height / 2)+ veyra.logUi("uitest", "UITEST_NOTE before=" + veyra.captureRequestedFps)+ veyra.logUi("uitest", "UITEST_NOTE click at " + p.x + "," + p.y + " window " + root.x + "," + root.y)+ const h = f.mapToItem(dialogs, f.width / 2, f.height / 2)+ const top = dialogs.childAt(h.x, h.y)+ veyra.logUi("uitest", "UITEST_NOTE host point " + h.x + "," + h.y + " top=" + top + " name=" + (top ? top.objectName : "") + " fieldParentChain=" + (function () { let a = []; let it = f; while (it) { a.push(it.objectName || String(it).split("(")[0]); it = it.parent } return a.join("<") })())+ veyra.logUi("uitest", "UITEST_CLICK " + p.x + " " + p.y)+ }+ if (ticks === 5) {+ const f = uitestFind(dialogs, "capture-fps")+ veyra.logUi("uitest", "UITEST_NOTE focus=" + (f ? f.children[0].activeFocus : "?") + " dialog=" + dialogs.dialog)+ veyra.logUi("uitest", "UITEST_SHOT clicked")+ }+ if (ticks === 6) veyra.logUi("uitest", "UITEST_KEY 35 1") // End+ if (ticks === 7) veyra.logUi("uitest", "UITEST_KEY 8 6") // Backspace x6+ if (ticks === 9) { veyra.logUi("uitest", "UITEST_KEY 51 1"); } // '3'+ if (ticks === 10) veyra.logUi("uitest", "UITEST_KEY 48 1") // '0'+ if (ticks === 12) veyra.logUi("uitest", "UITEST_SHOT typed")+ if (ticks === 14) {+ dialogs.close()+ veyra.logUi("uitest", "UITEST_NOTE after close fps=" + veyra.captureRequestedFps)+ }+ if (ticks === 16) {+ dialogs.open("capture")+ const f = uitestFind(dialogs, "capture-fps")+ veyra.logUi("uitest", "UITEST_NOTE reopened field=" + (f ? f.text : "?"))+ veyra.logUi("uitest", veyra.captureRequestedFps === 30 ? "UITEST_DONE" : "UITEST_FAIL fps=" + veyra.captureRequestedFps)+ running = false+ }+ }+ }diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex e02c9aa6..7cf10331 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -1506,7 +1506,17 @@ void QmlPlayerBridge::setCaptureColorRange(int value) {double QmlPlayerBridge::captureRequestedFps() const { return impl_->captureFps; }void QmlPlayerBridge::setCaptureRequestedFps(double value) {if (!source::validCaptureFrameRate(value)) { emit notice(tr("采集帧率请输入 1–1000 的数字(可带小数),或 0 沿用设备默认"), true); return; }- impl_->captureFps = value; emit captureChanged();+ if (impl_->captureFps == value) return;+ impl_->captureFps = value;+ // Saved as soon as it is typed, as the audio choice is (field report 2026-10-01: the+ // new rate was lost unless another option was changed before closing).+ auto& i = *impl_;+ if (!i.captureDevice.empty() && i.captureDevice == i.capturePrefs.videoPath) {+ i.capturePrefs.requestedFps = value;+ if (!ui::CapturePreferenceStore(i.dataDir).save(i.capturePrefs)) veyra::log::warn("capture-ui", "capture frame rate not saved");+ }+ veyra::log::info("capture-ui", std::format("requested fps={}", value));+ emit captureChanged();}int QmlPlayerBridge::captureAudioIngress() const { return int(settings().captureAudio); }void QmlPlayerBridge::setCaptureAudioIngress(int value) {