Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    QPainter size limitations

    General and Desktop
    2
    6
    3561
    Loading More Posts
    • 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.
    • B
      brandont last edited by

      In the "documentation":http://doc.qt.nokia.com/latest/qpainter.html#limitations , it says "while coordinates greater than +/- 215 can be used, any painting performed with coordinates outside this range is not guaranteed to be shown".
      Does that mean that you can't "properly" draw graphics more than 430px large? What happens if your making a custom window frame that exceeds 430px? I know you can probably break it down into smaller pieces, but why did they make it so small?
      Thanks -Brandon T.

      1 Reply Last reply Reply Quote 0
      • P
        patburke last edited by

        That's "plus or minus two to the power of 15", "+/-2^15" or "+/-32768". The rendering of that superscript tag in the page appears to be weird.

        1 Reply Last reply Reply Quote 0
        • ?
          Guest last edited by

          you should log a bug against documentation for this :)

          1 Reply Last reply Reply Quote 0
          • P
            patburke last edited by

            So: "Qt docs say coords greater then +/-215 aren't guaranteed to be shown, but this does consistently seem to work, please limit code to break this properly."?

            Or maybe: "Fix yer css!"? :)

            This does require me to actually remember my bugtracker password though. Such is the trials and tribulations of life.

            En-bugged: http://bugreports.qt.nokia.com/browse/QTBUG-15335

            1 Reply Last reply Reply Quote 0
            • ?
              Guest last edited by

              good to have bugtracker password always at hand :)
              thanks for the bug :D

              1 Reply Last reply Reply Quote 0
              • B
                brandont last edited by

                That makes more sense!

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post