Results 1 to 1 of 1

Thread: draw transparent buttons on top of an opengl graphicsview

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Posts
    24
    Qt products
    Qt4
    Platforms
    Windows

    Angry draw transparent buttons on top of an opengl graphicsview

    hello guys,

    i'm trying to draw some round corner buttons on top of my opengl scene.

    i'm following this tutorial http://doc.trolltech.com/qq/qq26-openglcanvas.html, and the round corner button is generated with style sheet found here: http://doc.trolltech.com/4.5/stylesh...-the-box-model

    QPushButton {
    background-color: red;
    border-style: outset;
    border-width: 2px;
    border-radius: 10px;
    border-color: beige;
    font: bold 14px;
    min-width: 10em;
    padding: 6px;
    }

    the button looks fine if it is a normal widget button, but looks wrong when i insert it into the graphicsview. it will automatically be filled with the background color, therefore, the button shape becomes rectangle. please see the attached image. the first button is how it looks in the qt designer, but when i put it into a opengl graphics view, it becomes rectangle (2nd image)

    i don't what i can to fix this. i need help. thanks.
    Attached Images Attached Images

Similar Threads

  1. Problem with OpenGL support (transparent background)
    By developer-nsk in forum Qt Programming
    Replies: 0
    Last Post: 2nd November 2009, 19:31
  2. No text antialiasing with OpenGL graphicsview
    By pherthyl in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2009, 22:47
  3. Draw transparent SVG in Background of Widget
    By soul_rebel in forum Qt Programming
    Replies: 0
    Last Post: 28th October 2008, 20:44
  4. Replies: 5
    Last Post: 11th March 2008, 13:38
  5. Replies: 5
    Last Post: 7th November 2006, 15:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.