Overlapping QGraphicsPixmapItem's



  • 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 ?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.