Skip to content

When writing code with Qt/C++, you can't create function definitions in cpp files for methods after private slots:. #13858

@yyyu-void

Description

@yyyu-void

Type: Bug

When writing code with Qt/C++, you can't create function definitions in cpp files for methods after private slots:.

class Xxx: public QWidget
{
.........
private slots:
void do();
};
The definition of do method cannot be generated here.

Extension version: 1.27.0
VS Code version: Code 1.103.1 (360a4e4fd251bfce169a4ddf857c7d25d1ad40da, 2025-08-12T16:25:40.542Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz (12 x 1608)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.78GB (21.52GB free)
Process Argv --crash-reporter-id a89367dc-c102-49a8-acea-f1aa20840b8e
Screen Reader no
VM 40%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
2e7ec940:31000449
nativeloc1:31344060
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixt:31358882
9d2cg352:31346308
convertlamdat:31358880
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31352135
replacestringexc:31350595
63221493:31336333
envsdeactivate2:31353495
yijiwantestdri0626-c:31336931
0927b901:31350571
ji9b5146:31348712
1je7-usegpt41:31346762
45650338:31358607
0cj2b977:31352657
gaj49834:31362110

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions