Commit 0769ab6
Fix: improve QProcess usage for Qt6 compatibility
- Refactored QProcess::start() calls in parseEDID() to use the modern
API by separating program name and arguments instead of shell string concatenation.
- Added return value validation for waitForFinished() to
handle process execution failures gracefully.
- Applied QString::fromLocal8Bit() to standard output reading to
ensure proper text encoding handling.
- These changes improve code robustness, security (avoiding shell injection risks),
and compatibility with Qt6 best practices.
Log: fix issue
Bug: https://pms.uniontech.com/bug-view-353603.html1 parent 8509a18 commit 0769ab6
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | | - | |
205 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
| 211 | + | |
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
| |||
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
225 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
| |||
0 commit comments