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. Qt Customizing QDateEdit Styling Sheet
Forum Updated to NodeBB v4.3 + New Features

Qt Customizing QDateEdit Styling Sheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 189 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.
  • A Offline
    A Offline
    Alexey_Golubev
    wrote on last edited by
    #1

    How can i get the appearance of QDateEdit as shown on the image?
    1.png

    I tried to change the stylesheet, but I do not know how to achieve a frame around the numbers. Version qt4.7.8.

         QDateTimeEdit {
         padding-top: 20px; 
         padding-bottom: 20px; 
    
         border-image: url("/home/image/next.png");
         border-width: 0px;
    
         background-clip: content;
     }
    
     QDateTimeEdit::up-button {
         subcontrol-origin:   border;
         subcontrol-position: top center left center;
         top: 15px; 
         left: 20px;
         width: 16px;
         height:16px;
         border-image: url("/home/image/next_.png");
     }
    
     QDateTimeEdit::down-button {
         subcontrol-origin:  border;
         subcontrol-position: bottom center;
         width: 16px;
         height:16px;
     }
    
    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