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. I want to increase the Height of the navigationBar in CalendarWidget

I want to increase the Height of the navigationBar in CalendarWidget

Scheduled Pinned Locked Moved General and Desktop
navigationheightqcalendarwidgetstylesheet
5 Posts 2 Posters 2.7k 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.
  • F Offline
    F Offline
    ForestPoem
    wrote on 8 Sept 2015, 04:10 last edited by ForestPoem 9 Aug 2015, 04:15
    #1

    Hello, everyone,I want to increase the Height of the navigationBar.CalendarWidget.
    Tried using a style sheet, but increased the size of the arrow-down and arrow -up.
    Want to increase the Height of navigationBar.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 8 Sept 2015, 06:51 last edited by mrjj 9 Aug 2015, 06:54
      #2

      Hi
      I don't think you can only increase that height.

      You could change Font size and get it bigger that way
      QCalendarWidget QWidget#qt_calendar_navigationbar {
      font-size: 24px;
      }

      Have a look at
      http://www.qtcentre.org/archive/index.php/t-30478.html

      You can do it from code with

      QWidget *calendarNavBar = ui->calendarWidget->findChild<QWidget *>("qt_calendar_navigationbar");
          if (calendarNavBar) {   
          calendarNavBar->setMinimumHeight(200);
          }
      
      F 1 Reply Last reply 8 Sept 2015, 07:39
      1
      • M mrjj
        8 Sept 2015, 06:51

        Hi
        I don't think you can only increase that height.

        You could change Font size and get it bigger that way
        QCalendarWidget QWidget#qt_calendar_navigationbar {
        font-size: 24px;
        }

        Have a look at
        http://www.qtcentre.org/archive/index.php/t-30478.html

        You can do it from code with

        QWidget *calendarNavBar = ui->calendarWidget->findChild<QWidget *>("qt_calendar_navigationbar");
            if (calendarNavBar) {   
            calendarNavBar->setMinimumHeight(200);
            }
        
        F Offline
        F Offline
        ForestPoem
        wrote on 8 Sept 2015, 07:39 last edited by ForestPoem 9 Aug 2015, 07:52
        #3

        @mrjj

        This method is not considered haeteotneunde Thank you

        But are you CalendarWidget drop out when you press the button QDateEdit can I fix ?

        M 1 Reply Last reply 8 Sept 2015, 07:42
        0
        • F ForestPoem
          8 Sept 2015, 07:39

          @mrjj

          This method is not considered haeteotneunde Thank you

          But are you CalendarWidget drop out when you press the button QDateEdit can I fix ?

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 8 Sept 2015, 07:42 last edited by
          #4

          @ForestPoem said:

          haeteotneunde

          No idea what that is but
          calendarNavBar is part of private class of calendarWidget so accessing it
          might break later on even if a bit unlikely as its not been changed for a long time and it pretty stable.

          F 1 Reply Last reply 8 Sept 2015, 08:07
          0
          • M mrjj
            8 Sept 2015, 07:42

            @ForestPoem said:

            haeteotneunde

            No idea what that is but
            calendarNavBar is part of private class of calendarWidget so accessing it
            might break later on even if a bit unlikely as its not been changed for a long time and it pretty stable.

            F Offline
            F Offline
            ForestPoem
            wrote on 8 Sept 2015, 08:07 last edited by
            #5

            @mrjj
            Oh thank you very much. It's a good thing to learn!

            1 Reply Last reply
            0

            3/5

            8 Sept 2015, 07:39

            • Login

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