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. Painter path exceeds +/-32767 pixels.
QtWS25 Last Chance

Painter path exceeds +/-32767 pixels.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 2.0k 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.
  • ataryqA Offline
    ataryqA Offline
    ataryq
    wrote on last edited by
    #1

    Hi all!
    I collided with problem, qt showing this message: "Painter path exceeds +/-32767 pixels". Example code of my window:
    class OpenGLWindow : public QWindow, protected QOpenGLFunctions {...
    What is it? How I can resolve this problem or listerning about it?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Your sample code doesn't tell much. Can you include the implementation ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      ataryqA 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Your sample code doesn't tell much. Can you include the implementation ?

        ataryqA Offline
        ataryqA Offline
        ataryq
        wrote on last edited by ataryq
        #3

        @SGaist
        Next I use for drawing QPainter.
        I don't know what the code cause this problem.

        void OpenGLWindow::render()
        {
        if (!m_device) {
        m_device = new QOpenGLPaintDevice;
        m_device->setSize(size());

        painter = new QPainter(m_device);
        GraphicComponent::Init(painter);
        painter->setWindow(QRect(QPoint(-5, -10), size()));
        

        }
        glClear(GL_COLOR_BUFFER_BIT);
        render(painter);
        }

        1 Reply Last reply
        0
        • ataryqA Offline
          ataryqA Offline
          ataryq
          wrote on last edited by
          #4

          I found solve. The message showing when we drawing pixel which leaving border of +/-32767 pixels. In my cause it was uninitilization variable.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Good ! What uninitialized variable was it ?

            Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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