Results 1 to 7 of 7

Thread: Is there a way, to do something like Windows7 calendar main window ?

  1. #1
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Is there a way, to do something like Windows7 calendar main window ?



    this is a screenshot of the calendar from Windows 7 and I have to make something similar to it, but I have no idea how to start or even how to type a question to docs

    the way it should work:
    when I have appointment which lasts from 08:00 to 10:00, I would like it to be visible in this widget as a rectangle with one side corresponding to the time appointment lasts (here 1:30 hour)

    is this possible ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there a way, to do something like Windows7 calendar main window ?

    Yes, it is possible. Either write your own custom widget (be it a descendant of QWidget or QAbstractItemView) or use Graphics View.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Is there a way, to do something like Windows7 calendar main window ?

    this is already a very helpful information
    but if I said I have a very short time to do that, what would you suggest as better choice ?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there a way, to do something like Windows7 calendar main window ?

    Quote Originally Posted by kornicameister View Post
    but if I said I have a very short time to do that, what would you suggest as better choice ?
    Find a ready component at qt-apps.org.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Is there a way, to do something like Windows7 calendar main window ?

    The first approach to this issue was failure, but now I would like to try one more time.

    I read some documentation and I figured out that subclassing QAbstractItemView (or QAbstractTableModel) won't work because I need some rectangles to be placed one under another, but in case of overriding the day (this is vertical header on the screen in the first post) for different items new item should be placed next to not under or above. (like item 3 and item 5 on the attached screenshot)

    Maybe there is a way, by using QAbstractTableModel or QAbstractItemView to achieve that every column will handle sizes of the cells by it's own ?
    If not I assume that only using QGraphicsView(Scene) this can be achieved

    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

  6. #6
    Join Date
    Aug 2009
    Location
    Belgium
    Posts
    310
    Thanks
    10
    Thanked 31 Times in 25 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Is there a way, to do something like Windows7 calendar main window ?

    Hi,
    you can look into this : QxtScheduleView

    Regards,
    Marc

  7. #7
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    112
    Thanks
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Is there a way, to do something like Windows7 calendar main window ?

    could be useful if it did not throws with undefined references after trying to build the project using it

    I installed, put right files in the appropriate folders in qtdir folder but
    for example QxtScheduleView can't find qxtglobal.h and qxtnamespace.h (which is weird at the beginning already) - which in fact is the first problem I encountered, but I copied the files manually so as they could be found and than I had the problem with undefined reference

    I wrote an email to the author what his position is
    Last edited by kornicameister; 14th February 2011 at 15:32.
    My schedule makes my cry
    My works makes my laugh
    My life makes... oh...no....

Similar Threads

  1. Replies: 2
    Last Post: 4th August 2010, 19:10
  2. Replies: 9
    Last Post: 16th May 2010, 16:21
  3. Main window
    By Tavit in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2009, 11:46
  4. Replies: 11
    Last Post: 11th August 2008, 09:14
  5. Replies: 15
    Last Post: 23rd March 2007, 16:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.