QColor is rising an error when it's inside a QMenu and you double click on it
See original GitHub issueIf QColor is inside a QMenu and the user double click (by mistake for example) QColor rise an error Uncaught TypeError: Cannot read property 'clientWidth' of null
and it’s closing the menu even it’s not the desired behavior.
Can be simply tested here: https://quasar.dev/vue-components/color-picker#with-qinput Open the console first, try to double click, and see the error and the QMenu closing unexpectedly.
(it works if the screen is small enough (mobile mode for example))
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Qml QColor Type Error - c++ - Stack Overflow
Converting QColor to QVariant. In the JS debugger, the color object was empty. Converting QColor to a color string "#RRGGBB". This still throws...
Read more >Technical FAQ - Qt Wiki
Just double click on the resource file in the Projects view. The integrated Qt Designer doesn't come with an extra resource editor.
Read more >February | 2022 - Gene Dan's Blog
That may be tedious, and hard to keep track of if you have several attempts. However, if you could simply double-click on a...
Read more >qwidget.cpp source code [qtbase/src/widgets/kernel/qwidget ...
484, If your widget only contains child widgets, you probably do not need to. 485, implement any event handlers. If you want to...
Read more >GEOG 489 - John A. Dutton e-Education Institute
After checking the boxes, click "Install" in the lower right-hand corner. ... that you have multiple machines to run your code on but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After 10 minutes od relentles clicking, I’ve managed to reproduce the issue:
Repro video link.
It raise error in console:
The error disappear in the console but the problem still here. Can someone confirm please.