Results 1 to 5 of 5

Thread: Help with push buttons and date/time edit

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2014
    Posts
    4
    Thanks
    3
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Help with push buttons and date/time edit

    Hi everyone,

    I am completely new to this forum and QT Creator, and it's great to see there's a place for new people like me
    Please feel free to correct me if I use terms incorrectly!!

    Im creating an application where I want to edit the date and time (date/time edit widget) and "set" or "cancel" that date and time using two push buttons. In the UI window I've selected the "clicked()" signal for the two buttons and on the date/time edit widget I selected the "editingFinished()" slot.

    Question 1)
    Will the dateTime property always be whatever the user has entered for a date and time? If so, is there a way to override that update so that it only changes when the user selects the "Set Alarm" button?

    Question 2)
    Is there a way to create a new instance (I think thats the right term) of dateTime?
    For instance, I have a label that displays the current time on the application using the code: QTime time = QTime::currentTime();
    Is there a way to do this for dateTime?

    Thank you!!!
    Last edited by lupo5; 9th May 2014 at 21:52.

Similar Threads

  1. Replies: 1
    Last Post: 17th April 2014, 06:09
  2. Replies: 0
    Last Post: 5th January 2013, 13:29
  3. Line edit and push button
    By dela in forum Newbie
    Replies: 1
    Last Post: 10th December 2008, 16:10
  4. Replies: 1
    Last Post: 19th May 2007, 05:19
  5. How to default Date-Edit Widget to system date
    By JohnToddSr in forum Qt Tools
    Replies: 4
    Last Post: 17th January 2007, 19:18

Tags for this Thread

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.