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. Qpainter drawing semi-transparent line, transparence changes when overlapping
Forum Updated to NodeBB v4.3 + New Features

Qpainter drawing semi-transparent line, transparence changes when overlapping

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 495 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.
  • I Offline
    I Offline
    Iknownocode
    wrote on last edited by
    #1

    屏幕截图 2021-11-01 142455.png
    I am creating a painting tool. And I would like to draw some semi-transparent lines, but the color changes when it overlaps.
    Can someone tell me how to solve this problem?

    Thank you in advance!

    I 1 Reply Last reply
    0
    • I Iknownocode

      屏幕截图 2021-11-01 142455.png
      I am creating a painting tool. And I would like to draw some semi-transparent lines, but the color changes when it overlaps.
      Can someone tell me how to solve this problem?

      Thank you in advance!

      I Offline
      I Offline
      Iknownocode
      wrote on last edited by Iknownocode
      #2

      屏幕截图 2021-11-02 092257.png
      This is the main part of my code. I want to use drawline in Qpainter to draw the semi-transparent line, but it does not give me the correct effect.

      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