Results 1 to 5 of 5

Thread: 2 QDateEdit with 1 QCalendarWidget ?

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

    Default 2 QDateEdit with 1 QCalendarWidget ?

    Hi,

    is it possible for two QDateEdit to share the same QCalendarWidget ? For example is it possible to do the following:

    Qt Code:
    1. QDateEdit *dateEdit1 = new QDateEdit;
    2. QDateEdit *dateEdit2 = new QDateEdit;
    3. CalendarWidget *calendarWidget = new CalendarWidget;
    4.  
    5. dateEdit1->setCalendarWidget(calendarWidget);
    6. dateEdit2->setCalendarWidget(calendarWidget);
    To copy to clipboard, switch view to plain text mode 

    and is it working like I expect ?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: 2 QDateEdit with 1 QCalendarWidget ?

    Quote Originally Posted by ouekah View Post
    and is it working like I expect ?
    Did you try it?

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

    Default Re: 2 QDateEdit with 1 QCalendarWidget ?

    Well I wish I could but I'm still stuck with a previous issue:

    http://www.qtcentre.org/threads/3014...Widget-clicked

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: 2 QDateEdit with 1 QCalendarWidget ?

    Quote Originally Posted by ouekah View Post
    Well I wish I could but I'm still stuck with a previous issue:

    http://www.qtcentre.org/threads/3014...Widget-clicked
    Come on, it is not fair to ask questions about things you havent tried. Also you should first solve you current problems befor moving on.

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

    Default Re: 2 QDateEdit with 1 QCalendarWidget ?

    is it possible for two QDateEdit to share the same QCalendarWidget ?
    The answer is: no.

Similar Threads

  1. QCalendarWidget::clicked
    By ouekah in forum Newbie
    Replies: 6
    Last Post: 2nd May 2010, 16:37
  2. How can I add a QCalendarWidget to a QToolBar?
    By cydside in forum Qt Programming
    Replies: 1
    Last Post: 10th April 2009, 23:06
  3. QCalendarWidget background image
    By khcbabu in forum Newbie
    Replies: 0
    Last Post: 31st March 2009, 12:51
  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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.