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. How to change border of QPushButton or QComboBox to be radius without using QML ?

How to change border of QPushButton or QComboBox to be radius without using QML ?

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

    Hi i don't know QML very well but I want to change style of my pusbuttons and comboboxes without using QML do you know any method for that.

    J.HilkJ 1 Reply Last reply
    0
    • B BeastBook

      Hi i don't know QML very well but I want to change style of my pusbuttons and comboboxes without using QML do you know any method for that.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @BeastBook
      for QWidgets you can use stylesheets

      QPushButton
      https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton

      QComboBox
      https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox

      for more customization that can't be done with stylesheets you probably have to subclass and write your own paintEvent


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved