Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-136457

What is the behavior when QPen::setWidth use negative number

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.4.2
    • GUI: Painting
    • None
    • Linux/X11
    • Linux/X11

    Description

      current documentation is not supported, So this is undefined behavior?

      When I set width == -1, QPainter will draw nothing.

       

      > Setting a pen width with a negative value is not supported.

       

       

      https://doc.qt.io/qt-6/qpen.html#setWidth

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            illusory0x0 haskell illusory0x0
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes