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. Overlapping QGraphicsPixmapItem's
Forum Updated to NodeBB v4.3 + New Features

Overlapping QGraphicsPixmapItem's

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 332 Views 1 Watching
  • 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.
  • H Offline
    H Offline
    HappyEnd
    wrote on last edited by
    #1

    First of all, I'm total beginner so forgive me, If this question is stupid or misguided.
    I have folowing problem, i create graphics like so

    setPixmap(QPixmap(":Graphics/Terrain"));
    

    (this is a square) and then i want to add frame to it (red od blue it will depends on some condition). I have separate graphics file, and when I'm adding it (like above), on the screen shows up frame with white square in centre, which cover ealier added "Terrain". How to make this white square transparent ?

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

      Hi and welcome to devnet,

      Your path is wrong. it's missing a forward slash after the :.

      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