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. QPushButtons not becoming Buttons

QPushButtons not becoming Buttons

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 261 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.
  • P Offline
    P Offline
    Phamy1289
    wrote on last edited by
    #1

    My program opens a new window where you can push a button called "Transmitter 1" but it doesn't look like a button. I'm still new to Qt.

    ca89190b-26f3-410b-aec9-9beb4ced42bd-image.png

    Code:

    83fb4d03-69d2-4b17-9586-cf7b79e7e899-image.png

    b6f9d309-afcf-4153-b191-b06369e329a6-image.png

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

      Hi,

      The QGroupBox stylesheet will also apply to it's child widgets. Since there's no scope on it, everything will look flat.

      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
      • P Offline
        P Offline
        Phamy1289
        wrote on last edited by
        #3

        Ah I see. I was just trying to remove the border lines of the QGroupBox. I didn't realize that affected the buttons as well. Thank you, that solved it.

        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