Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QGraphicsDropShadowEffect the shadow scalable is not correct in the scene
Qt 6.11 is out! See what's new in the release blog

QGraphicsDropShadowEffect the shadow scalable is not correct in the scene

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 404 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • QtFCQ Offline
    QtFCQ Offline
    QtFC
    wrote on last edited by QtFC
    #1

    The QGraphicsDropShadowEffect is strongly tied to pixels and not to scene units. This leads to the fact that when scaling QGraphicsView, the item shadow runs away to the side, because the number of pixels is fixed, but the size of the item has changed.

    This is not critical when viewing a document, but it may be critical when printing a document. When the user sees one picture on the screen, and a slightly different one is printed on the sheet.

    To fix this, needs to add Hints method where developer can specify what want to bind the shadow size: to screen pixels or to scene units.

    ShadowEffect.png

    JonBJ 1 Reply Last reply
    0
    • QtFCQ QtFC

      The QGraphicsDropShadowEffect is strongly tied to pixels and not to scene units. This leads to the fact that when scaling QGraphicsView, the item shadow runs away to the side, because the number of pixels is fixed, but the size of the item has changed.

      This is not critical when viewing a document, but it may be critical when printing a document. When the user sees one picture on the screen, and a slightly different one is printed on the sheet.

      To fix this, needs to add Hints method where developer can specify what want to bind the shadow size: to screen pixels or to scene units.

      ShadowEffect.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @QtFC
      If you are hoping your comments will be acted on, are you aware that this is a user forum and is not read by TQtC company/developers?

      QtFCQ 1 Reply Last reply
      1
      • JonBJ JonB

        @QtFC
        If you are hoping your comments will be acted on, are you aware that this is a user forum and is not read by TQtC company/developers?

        QtFCQ Offline
        QtFCQ Offline
        QtFC
        wrote on last edited by
        #3

        @JonB said in QGraphicsDropShadowEffect the shadow scalable is not correct in the scene:

        @QtFC
        If you are hoping your comments will be acted on, are you aware that this is a user forum and is not read by TQtC company/developers?

        I suspect that...

        https://bugreports.qt.io/browse/QTBUG-111108

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved