1

Is it possible to disable zooming(ctrl+mousewheel) of html content loaded in QWebEngineView. I tried

qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--enable-blink-features=ShadowDOMV0,CustomElementsV0,--disable-pinch");

it is not working.

Note: We are building a desktop application.

Akshay R
  • 47
  • 6
  • Subclass `QWebEngineView` and override relevant protected virtual event method. Or, install event filter and block events. – hyde Mar 30 '22 at 16:34
  • OK will try. But are there any chromium flags/switches to disable zoom. I could not find any relevant switches. https://peter.sh/experiments/chromium-command-line-switches/ – Akshay R Mar 31 '22 at 05:33
  • Those env variables quite possibly are not used with an embedded chromium engine, or they're disabled on purpose maybe. If they were enabled, they'd need to be documented for any Qt app using the module, and still have surprised users and odd bug reports... – hyde Mar 31 '22 at 06:21
  • Any success? I've incidentally also been looking into this, with not much success so far. – hyde Apr 05 '22 at 13:51
  • Did you find the answer? Can you share it please – Ticsup Aug 12 '22 at 22:54
  • No. Could not find any answer. I was moved to a different project. So not pursuing. Apologies. – Akshay R Oct 17 '22 at 07:23

0 Answers0