Results 1 to 2 of 2

Thread: Modify the text format of a single date in the QCalendarWidget

  1. #1
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    18
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Modify the text format of a single date in the QCalendarWidget

    Hi,

    is there a way to modify the text format of a single date in the QCalendarWidget ?

    I'm looking for a function which looks like:

    Qt Code:
    1. setDateTextFormat(QDate date, const QTextCharFormat & format )
    To copy to clipboard, switch view to plain text mode 

    I have found:

    Qt Code:
    1. void QCalendarWidget::setWeekdayTextFormat ( Qt::DayOfWeek dayOfWeek, const QTextCharFormat & format )
    To copy to clipboard, switch view to plain text mode 

    But this is not flexible enough for what I want to do...

    Any ideas ?

  2. #2
    Join Date
    Feb 2010
    Posts
    61
    Thanks
    18
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Modify the text format of a single date in the QCalendarWidget

    Sorry for this stupid post. I have just found the function I'm looking for in the documentation...

Similar Threads

  1. QCalendarWidget::clicked
    By ouekah in forum Newbie
    Replies: 6
    Last Post: 2nd May 2010, 17:37
  2. QCalendarWidget - height rows
    By pease in forum Qt Programming
    Replies: 1
    Last Post: 15th April 2010, 18:31
  3. How can I add a QCalendarWidget to a QToolBar?
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 11th April 2009, 00:06
  4. about QCalendarWidget
    By nifei in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2009, 10:17
  5. No QCalendarWidget in designer? 4.2.0-tp1
    By Spockmeat in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2006, 19: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.