Results 1 to 4 of 4

Thread: QML and QCalendarWidget

  1. #1
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    18
    Thanked 3 Times in 3 Posts

    Default QML and QCalendarWidget

    Hi,

    I'm looking for a way to make the rotation of calendars, using QML in a QWidget. See the attached image.
    The idea is to click on the left and right buttons that are aligned with the calendars, they should slide to the left or right, with the next or previous calendars.
    How can I integrate this, any example is welcome.
    Attached Images Attached Images

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

    Default Re: QML and QCalendarWidget

    Is using QML a requirement here? If not then use QPropertyAnimation to animate the position of each calendar and use four calendars instead of three.
    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. The following user says thank you to wysota for this useful post:

    estanisgeyer (23rd September 2011)

  4. #3
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    18
    Thanked 3 Times in 3 Posts

    Default Re: QML and QCalendarWidget

    Interesting. Out of curiosity, you can use QML / Quick Qt here or is not feasible, even though QPropertyAnimation is best.
    Thanks,

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

    Default Re: QML and QCalendarWidget

    You can use QML but you'll have additional work in embedding QCalendarWidget instances into the scene. The sliding itself is easy.
    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.


Similar Threads

  1. Subclass QCalendarWidget?
    By Archa4 in forum Newbie
    Replies: 1
    Last Post: 25th February 2011, 07:32
  2. QCalendarWidget::clicked
    By ouekah in forum Newbie
    Replies: 6
    Last Post: 2nd May 2010, 16:37
  3. 2 QDateEdit with 1 QCalendarWidget ?
    By ouekah in forum Newbie
    Replies: 4
    Last Post: 26th April 2010, 09:24
  4. about QCalendarWidget
    By nifei in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2009, 09:17
  5. No QCalendarWidget in designer? 4.2.0-tp1
    By Spockmeat in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2006, 18:13

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
  •  
Qt is a trademark of The Qt Company.