Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to Develop a Calendar Widget.
Forum Updated to NodeBB v4.3 + New Features

How to Develop a Calendar Widget.

Scheduled Pinned Locked Moved Mobile and Embedded
119 Posts 11 Posters 82.7k 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.
  • I Offline
    I Offline
    imrrk
    wrote on 7 Apr 2011, 06:59 last edited by
    #6

    Hello Qtk,I want to interact with the dates

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on 7 Apr 2011, 07:00 last edited by
      #7

      Did you look at the examples at qt-apps?
      They have a full featured calender app, so they also handle clicks.
      If you implement it with model/view and also have a custom view, you can handle clicks.

      where is the problem?

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • I Offline
        I Offline
        imrrk
        wrote on 7 Apr 2011, 07:06 last edited by
        #8

        hi gerolf,can specify which example to look at..because i found many

        1 Reply Last reply
        0
        • I Offline
          I Offline
          imrrk
          wrote on 7 Apr 2011, 07:46 last edited by
          #9

          hey gerolf,i m not getting you...

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on 7 Apr 2011, 07:51 last edited by
            #10

            imrrk: this is not a chat channel. Please use the edit link to the right of each message to add to a message; don't just post new ones all the time.

            On topic: I found that good calendar examples are hard to come by. I found a nice one (via a tip earlier in this forum, search the forum for calendar and you will find the topic), but that one I ended up getting send directly from the author. I have not seen it published in the open again yet.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on 7 Apr 2011, 07:53 last edited by
              #11

              The link I provided was one app at qt-apps. But if you find more, have a look at them, if they look like what yu need, look at the source.

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • F Offline
                F Offline
                frankcyblogic.de
                wrote on 7 Apr 2011, 07:58 last edited by
                #12

                I just recently create a minimal calendar in QtQuick in Javascript. It is unfinished, but shows dates correctly;)

                https://github.com/unclefrank/weekly

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  imrrk
                  wrote on 7 Apr 2011, 09:12 last edited by
                  #13

                  hi gerolf,I got about the application you are speaking about,,is it applicable to mobile phones..also

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    andre
                    wrote on 7 Apr 2011, 09:14 last edited by
                    #14

                    [quote author="imrrk" date="1302167524"]hi gerolf,I got about the application you are speaking about,,is it applicable to mobile phones..also

                    [/quote]
                    Try and see?

                    1 Reply Last reply
                    0
                    • I Offline
                      I Offline
                      imrrk
                      wrote on 7 Apr 2011, 09:28 last edited by
                      #15

                      Thanks andre...

                      1 Reply Last reply
                      0
                      • I Offline
                        I Offline
                        imrrk
                        wrote on 8 Apr 2011, 05:32 last edited by
                        #16

                        hello friends,still i dint get any concrete material so that i can develop a calendar for mobile..actually i want to use pushbuttons,for dates i.e very date is on pushbutton..so that i can click this button and i can add some notes for that button...but with the inbuilt widget its not possible i guess,because they have used QTableformat class and divided it into rows and columns..so friends please help me out..

                        regards
                        imrrk

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          giesbert
                          wrote on 8 Apr 2011, 06:48 last edited by
                          #17

                          If you have no existing code that works for you, start build it on your own. I have never seen a calendar build on buttons.

                          We can give you ideas, suggestions for specific technical stuff. But we don't write your code. If you want it with buttons, sit down, take QtCreator and start coding.

                          Nokia Certified Qt Specialist.
                          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                          1 Reply Last reply
                          0
                          • I Offline
                            I Offline
                            imrrk
                            wrote on 8 Apr 2011, 07:11 last edited by
                            #18

                            but gerolf i just need the correct direction,have u seen the calendar of nokia phones..it has that feature...

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              andre
                              wrote on 8 Apr 2011, 07:53 last edited by
                              #19

                              First: why do you think you need buttons? You can of course implement a calendar based on grid of buttons. I am just wondering how that would help you achieve your goals?

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                giesbert
                                wrote on 8 Apr 2011, 07:55 last edited by
                                #20

                                That you click on a button?
                                Or that you click on a date and something happens?

                                You can use a model/view (like Qt calendar widget) and react on the mouse events. No buttons needed. Qt has no build in "button calendar". and if you need one, build it. Or try if you can get the code for the nokia phone calendar.

                                Nokia Certified Qt Specialist.
                                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                                1 Reply Last reply
                                0
                                • I Offline
                                  I Offline
                                  imrrk
                                  wrote on 8 Apr 2011, 10:48 last edited by
                                  #21

                                  hello gerolf,as u said,I need something should happen when i click on date..please guide me..

                                  1 Reply Last reply
                                  0
                                  • A Offline
                                    A Offline
                                    andre
                                    wrote on 8 Apr 2011, 11:07 last edited by
                                    #22

                                    QCalendarWidget provides that already. See the signals listed in the documentation for that class.

                                    1 Reply Last reply
                                    0
                                    • G Offline
                                      G Offline
                                      giesbert
                                      wrote on 8 Apr 2011, 11:26 last edited by
                                      #23

                                      [quote author="imrrk" date="1302259716"]hello gerolf,as u said,I need something should happen when i click on date..please guide me..[/quote]

                                      If you derive from, a view and can handle mouse events, clicks should be easy... (they are mouse events). Read a bit of Qt documentation on events (QWidget etc.) and views.

                                      Or look at QCalendarWidget and its interface. Perhaps derive from that.

                                      Nokia Certified Qt Specialist.
                                      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                                      1 Reply Last reply
                                      0
                                      • I Offline
                                        I Offline
                                        imrrk
                                        wrote on 8 Apr 2011, 12:25 last edited by
                                        #24

                                        ok thanks gerolf,hey i have created a two dimensional array of buttons,i.e 6 rows and 7 col,and by taking a counter i have my dates on pushbutttons,now the remaining work is to change the values on these buttons as the month and year changes..so any suggestions...

                                        thanks
                                        imrrk

                                        1 Reply Last reply
                                        0
                                        • Z Offline
                                          Z Offline
                                          ZapB
                                          wrote on 8 Apr 2011, 12:43 last edited by
                                          #25

                                          Yes. As others have said many times already, take a look at how other calendar widgets are implemented. There is one right in Qt already. Use your favourite text editor/IDE/pager to look at the source code for QCalendarWidget and see how they solved the problem.

                                          We are not here to write your code or do research for you. We are just a bunch of volunteers. We can help you out with specific technical problems but you have not shown what approaches you have tried to solve this problem yourself first.

                                          Nokia Certified Qt Specialist
                                          Interested in hearing about Qt related work

                                          1 Reply Last reply
                                          0

                                          15/119

                                          7 Apr 2011, 09:28

                                          topic:navigator.unread, 104
                                          • Login

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