Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qpaintevent

    Log in to post
    • All categories
    • D

      Unsolved QPaintEvent ignore automatic clipping
      General and Desktop • qpaintevent • • Dariusz

      3
      0
      Votes
      3
      Posts
      37
      Views

      SGaist

      Hi,

      Do you mean draw on a different widget ? If so, you can't. What you can do is use a larger widget so you have a larger surface to use.

    • A

      Unsolved Automatic Clipping in QPaintEvent cuts away parts of the drawing result
      General and Desktop • qpaintevent qpainter qwidget clipping paint event • • Allgaeuer

      1
      1
      Votes
      1
      Posts
      282
      Views

      No one has replied

    • S

      Unsolved Using hardware acceleration(GPU) for QWidget::paintEvent()
      General and Desktop • gpu acceletator gpu qwidget qpaintevent qpainter • • SilverSurfer

      6
      0
      Votes
      6
      Posts
      3464
      Views

      SGaist

      It uses the raster engine. See here for historical informations.

    • S

      Solved QWidget Flickering for frame by frame streaming of video
      General and Desktop • qwidget qpaintevent flickering video pixmap • • SilverSurfer

      26
      0
      Votes
      26
      Posts
      7978
      Views

      W

      @SilverSurfer I don't have the time handy to do a full working example, but this is the technique in glsl:
      https://www.khronos.org/opengl/wiki/Data_Type_(GLSL)#Swizzling

      (The vec4 can hold "rgba" values if that's what you put in it - the example there just calls it "xyzw" because the data type generically handles any 4 floats.)

      Basically, start from an example that draws an image with a simple glsl shader as a texture. Then hack on the shader until it flips around the colors like you want when it draws the texture. Then use your code that gets the image over the network to upload the image as the OpenGL texture every frame.

    • U

      Unsolved Failing to grok mappings of QGraphicsScene, QGraphicsView, etc.
      Language Bindings • qgraphicsscene qgraphicsview mapping qpaintevent python • • ubuntourist

      1
      0
      Votes
      1
      Posts
      537
      Views

      No one has replied

    • NIXIN

      Unsolved paintEvent is not painting complete objects
      General and Desktop • qpainter qpaintevent • • NIXIN

      11
      0
      Votes
      11
      Posts
      4976
      Views

      J

      @VRonin Depends on what he wants to achieve.
      Is it a widget, than I agree with you.
      Is it some CAD-drawing (looks like a diagram symbol to me), then I would prefer drawing.
      For the latter the Graphics View Framework would be more practical though.

    • NIXIN

      Solved Not able to draw lines inside QPaintEvent
      General and Desktop • qpaintevent qpainter • • NIXIN

      3
      0
      Votes
      3
      Posts
      1000
      Views

      NIXIN

      Thanx, it really solved my problem

    • 6

      Array or list for drawing multiple shapes
      General and Desktop • qlist qpaintevent • • 6ort

      6
      0
      Votes
      6
      Posts
      2794
      Views

      SGaist

      Rather than going up-front with building your own GUI for a painting program, I'd recommend taking a look at what is currently existing like Krita or KolourPaint. Painting is a vast subject that can cover many aspects. Just take a look at Qt's examples on the subject.

      You should also take the time to look at QtQuick for the GUI design part.