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. QPushButton over OpenGL
QtWS25 Last Chance

QPushButton over OpenGL

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • G Offline
    G Offline
    gpuckett54
    wrote on last edited by
    #1

    Hi,

    I am developing a Windows based GUI application. The main window on the application is a split screen with the input from a camera on one side and a map display on the other side. Then I have a row of buttons along the top of the window. The tool that displays the map automatically uses OpenGL. The other side uses QCamera and is not using OpenGL. My complication is that the buttons over the map half look different than the ones over the camera half.

    If I use the standard QPushButton the buttons over the OpenGL half have a black border. The others don't. One button in the middle that is half over the OpenGL side and half over the camera side has a black border over just the OpenGL part. If I try to make the button flat or put ANY style details on the buttons those over the OpenGL side just turn solid black. Also I wanted to use icons with transparent backgrounds as buttons but the background over the OpenGL side is black.

    At this point I just want buttons that look the same across the window. What do I have to do to fix this?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BlastDV
      wrote on last edited by
      #2

      Hi gpuckett54, you said that it didn't work when changing style details. But just to be sure, have you tried with stylesheets?

      (8) Just live your life blind like me (8)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gpuckett54
        wrote on last edited by
        #3

        That is what I meant. If I add any stylesheet information the button goes black on the OpenGL side. I've tried changing the background color and adding a border.

        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