question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QColor is rising an error when it's inside a QMenu and you double click on it

See original GitHub issue

If 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))

Screenshot at 18-11-17

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MilosPaunoviccommented, Jul 15, 2021

After 10 minutes od relentles clicking, I’ve managed to reproduce the issue:

  • Open color picker
  • Click on any color and hold down the mouse button
  • Swipe around selecting colors (don’t let mouseup event occur)
  • Quickly double click outside of picker

Repro video link.

It raise error in console: Screenshot 2021-07-15 at 14 14 09

0reactions
kevingermaincommented, Jul 23, 2021

The error disappear in the console but the problem still here. Can someone confirm please.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found