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. Bug with QGraphicsDropShadowEffect when resizing
Forum Updated to NodeBB v4.3 + New Features

Bug with QGraphicsDropShadowEffect when resizing

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.7k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    remmos
    wrote on last edited by
    #1

    Hello everyone ...

    When I maximize my - in a layout arranged - QGraphicsWidget with a QGraphicsDropShadowEffect enabled effect, the "layout-manager" doesn't call the "paint" method of the child-elemets correct.

    I've 3 QGraphicsWidgets, each in a horizontal-QGraphicsLinearLayout, in one vertical QGraphicsLinearLayout.
    (1 col. - 3 rows)

    First row is a "MenuBar" with a QGraphicsDropShadowEffect enabled.
    2nd row is empty (std. QGraphicsWidget - no subclass)
    3rd row is a "Footer" with QGraphicsDropShadowEffect enabled.

    On maximizing, the first row (MenuBar) grows up 100% of width

    But the 3rd row does not ... only sometimes ... e.g when I "leaf" the window and come back

    I tried qDebug and it seems the "paint" method is no called correctly on maximizing ...

    What now?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      remmos
      wrote on last edited by
      #2

      My debug Output:

      bq. Geometry Header: QRectF(0,0 1022x150)
      Geometry Footer: QRectF(0,741 1022x25)

      Window will be maximized !
      Geometry Header: QRectF(0,0 1918x150)
      <-- here is the first gap ... now i'll "change the active window" and come back -->
      Geometry Header: QRectF(0,0 1918x150)
      Geometry Footer: QRectF(0,991 1918x25) // <-- Now the width is correct ...

      Geometry Header: QRectF(0,0 1918x150) // <--- Window-Changed
      Geometry Footer: QRectF(0,991 1918x25) // <--- Window-Changed

      Window will not be maximized!
      Geometry Header: QRectF(0,0 1022x150)
      <-- here is the gap again - the footer is to wide ... -->
      Geometry Header: QRectF(0,0 1022x150) // <-- after "active-window change repaint"
      Geometry Footer: QRectF(0,741 1022x25) // now it fits ...

      Someone any ideas?

      1 Reply Last reply
      0

      • Login

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