Results 1 to 2 of 2

Thread: Brushes and window/viewport transformations

  1. #1
    Join Date
    May 2006
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Brushes and window/viewport transformations

    I'm trying to use different brush fill style patterns in combination with a QPainter instance for which a window and viewport transformation has been set. Now, when drawing rectangles for example, the problem is that the brush patterns end up being scaled up so much that the whole pattern is lost. Is this scaling to be expected, or am I doing something wrong? Also, is it possible to use pattern brushes when a viewport/window transformation is set such that the pattern is drawn correct?

  2. #2
    Join Date
    May 2006
    Posts
    23
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Brushes and window/viewport transformations

    For future reference: I found that Qt should support resizable brush pattern from 4.0 and up. As it turns out, not all platforms are supported yet though.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.