Logo Search packages:      
Sourcecode: qt4-x11 version File versions

src.gui.widgets.qdatetimeedit.cpp

//! [0]
  QDateTimeEdit *dateEdit = new QDateTimeEdit(QDate::currentDate());
  dateEdit->setMinimumDate(QDate::currentDate().addDays(-365));
  dateEdit->setMaximumDate(QDate::currentDate().addDays(365));
  dateEdit->setDisplayFormat("yyyy.MM.dd");
//! [0]


//! [1]
  setDateTimeRange(min, max);
//! [1]


//! [2]
  setMinimumDateTime(min);
  setMaximumDateTime(max);
//! [2]


//! [3]
  setDateRange(min, max);
//! [3]


//! [4]
  setMinimumDate(min);
  setMaximumDate(max);
//! [4]


//! [5]
  setTimeRange(min, max);
//! [5]


//! [6]
  setMinimumTime(min);
  setMaximumTime(max);
//! [6]



Generated by  Doxygen 1.6.0   Back to index