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. QSpinBox stylization
Forum Updated to NodeBB v4.3 + New Features

QSpinBox stylization

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 903 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
    pksublime
    wrote on last edited by
    #1

    I'm trying to heavily style a QSpinBox and I've gotten it to where it looks good in the designer of creator. However when I compile and run it, it ends up being just all white.

    Here's what I have in the stylesheet. I can post or attach pictures as needed.

    @QSpinBox {
    background-color: rgb(0, 0, 0);
    border-image: url(:/images/images/spin_background.png);
    border: 15px;
    font: 75 24pt "Consolas";
    color: rgb(255, 255, 255);
    qproperty-minimumSize: 196px 56px;
    qproperty-maximumSize: 196px 56px;
    qproperty-alignment: AlignHCenter AlignVCenter;
    }

    QSpinBox::up-button {
    border-image: url(:/images/images/spin_up.png);
    subcontrol-position: right;
    height: 15px;
    width: 23px;
    }
    QSpinBox::up-arrow {
    height: 15px;
    width: 23px;
    }
    QSpinBox::down-button {
    border-image: url(:/images/images/spin_down.png);
    subcontrol-position: left;
    height: 15px;
    width: 23px;
    }@

    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