Qt Customizing QDateEdit Таблица стилей - PullRequest
0 голосов
/ 22 апреля 2020

Как я могу получить вид QDateEdit, как показано на рисунке? enter image description here

Я пытался изменить таблицу стилей, но я не знаю, как создать рамку вокруг чисел. Версия 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;
 }
...