Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. custom calender widget in qt. help me
QtWS25 Last Chance

custom calender widget in qt. help me

Scheduled Pinned Locked Moved Unsolved Brainstorm
calender customwidget
5 Posts 2 Posters 1.8k 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.
  • V Offline
    V Offline
    vinay133
    wrote on 20 Feb 2016, 13:21 last edited by
    #1

    can any one give your ideas how to create a custom Widget for a calender . this is my requirement.

    1. Design & Develop Qt Application for displaying yearly calendar.
      i. Display the 12 months in a year
      ii. Option to change the year
      iii. Option to add event
      iv. The days with events has to be highlighted
      v. On mouse hover, the highlighted days has to show the events
      (Note: Should not use QCalendarWidget)

    vinay

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 20 Feb 2016, 13:43 last edited by
      #2

      Hi! First of all draw some pictures that show in great detail how your widget shall look and add textual descriptions how the user shall interact with it.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vinay133
        wrote on 20 Feb 2016, 14:18 last edited by
        #3

        http://i65.tinypic.com/1atl0.jpg

        please refer this requirement image

        vinay

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on 20 Feb 2016, 14:29 last edited by
          #4

          My first idea would be to have a custom widget for each day of a month. Such widget could inherit from QLabel. A tooltip could be used to display event data. Next create a custom widget to display a single month. This could be a QWidget with 7x6 gridlayout that holds the labels for "s m t w t f s" and the custom widgets for each day. Then make another custom widget that contains a gridlayout with the custom widgets for each month and a label for the year on top.

          1 Reply Last reply
          1
          • V Offline
            V Offline
            vinay133
            wrote on 20 Feb 2016, 14:55 last edited by
            #5

            Thank you for your support.:-)

            vinay

            1 Reply Last reply
            0

            5/5

            20 Feb 2016, 14:55

            • Login

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