Results 1 to 5 of 5

Thread: Clicking Instance problem..

  1. #1
    Join Date
    Apr 2011
    Posts
    12
    Qt products
    Qt3
    Platforms
    Symbian S60

    Default Clicking Instance problem..

    I want to interact with each cell of the calender by clicking it…on first click it will display the information of that cell such as weeks n year for that cell in the textbrowser in the same dialog but on again clicking on the same cell after first click i will move to the another dialog..so is it possible to do that…and not for one cell but for each cell individually

  2. #2
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default how to interact with each cell in calender

    weather i can use the same cell IN CALENDER WIDGET for two clicking instance that means if i click once it will show information on textbrowser…AND when i click again it move to the another dialog n both click is done one after another...

    i had write code for that but the problem is that..at first click it will show information on textbrowser but after that i hv to double the cell to perform next operation...

    Qt Code:
    1. connect(ui->calendarWidget,SIGNAL(clicked(QDate)),this,SLOT(showDate(QDate)));
    2. connect(ui->calendarWidget,SIGNAL(activated(QDate)),this,SLOT(showset()));
    3.  
    4. }
    5. void SeeCycleM::showDate(QDate date)
    6. {
    7. ui->lineEdit->setText(date.toString());
    8. }
    9. void SeeCycleM::showset()
    10. {
    11.  
    12. SetCycleM a(this);
    13. connect(&a,SIGNAL(setclicked()),this,SLOT(setcolors()));
    14. connect(&a,SIGNAL(unsetClicked()),this,SLOT(unsetColors()));
    15. a.show();
    16. a.exec();
    17. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by high_flyer; 18th April 2011 at 08:45. Reason: code tags

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to interact with each cell in calender

    Please don't double post.
    And why do you use two user names?
    What possible advantage you think it will give you??
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  4. #4
    Join Date
    Apr 2011
    Posts
    25
    Qt products
    Qt/Embedded
    Platforms
    Symbian S60

    Default Re: how to interact with each cell in calender

    sorry for that...

    actually i want to delete that account but dont know hw to do it..so if u can help me in that than please suggest ur view..

  5. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to interact with each cell in calender

    You can send a PM to one of the site admins requesting the account deletion.
    But as long as its not deleted, just don't use it.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Clicking on QwtPlot
    By orignihn in forum Qwt
    Replies: 1
    Last Post: 14th April 2011, 16:37
  2. Replies: 2
    Last Post: 3rd April 2011, 12:48
  3. Double Clicking Pro File
    By BalaQT in forum Installation and Deployment
    Replies: 2
    Last Post: 18th November 2009, 05:23
  4. Clicking Whitespace in a table
    By shooogun in forum Qt Programming
    Replies: 5
    Last Post: 27th March 2008, 06:29
  5. Double clicking with QTableView
    By DPinLV in forum Qt Programming
    Replies: 2
    Last Post: 13th September 2006, 06:22

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.