Questions tagged [qdate]

A QDate is a class from the Qt toolkit which provides functions for working with dates.

A QDate object contains information about a calendar date (for example its year, month, and day numbers), and can read the current date from the system clock. It also provides functions for comparing, formatting and parsing dates, and can perform basic date calculations.

The official documentation can be found here.

39 questions
0
votes
1 answer

Python QDateEdit increment

I'm using a QDateEdit control in a GUI in Python. I want to control it just by using keyboard, so when I press the up arrow key it changes from 31-jan-2000 to 01-feb-2000, by instance. Currently, it just changes year, month and day independiently,…
anvelascos
  • 399
  • 1
  • 3
  • 10
0
votes
2 answers

How to Populate QDateEdit Stored in QString again into a QDateEdit

I have 2 QDateEdit which are Date_dob and Date_doj. I am storing the value using a Qstring shown below. QString str_dob(ui->DATE_dob->text()); QString str_doj(ui->DATE_doj->text()); Now i want to populate the same into ui->Date_dob and ui->Date_doj…
Lalaboy
  • 29
  • 7
0
votes
3 answers

read QDate from Qtablewidget and store it on QDate

I have a problem with qdate and qtablewidget. When I update an item on a qtablewdiget through a connect, I call a function "updateProdotto". I have a problem in reading the new qdate that I insert and in storing it in a new qdate variable. I have…
Nicolò Scapin
  • 240
  • 1
  • 4
  • 15
0
votes
0 answers

Create a folder in runtime when date changes

My app is running continuously and I'd like to have a log folder created during runtime for each day. I would then place the logs of the day in the appropriate folder. It would look like this: logs/ 07-11-2016/file1.log …
Grégoire Borel
  • 1,880
  • 3
  • 33
  • 55
0
votes
0 answers

Qt: how to set QDate (that is converted from QString) on QDateEdit field?

I have a QDateEdit field on my mainwindow. I capture whatever date is selected by the user as QString before insert it into the database. QString membership_Date = ui->memebershipDate->text(); Then, in case the user want to update the date, I…
McLan
  • 2,552
  • 9
  • 51
  • 85
0
votes
1 answer

PyQt: display QPushButton that looks like the down-arrow button in QComboBox

In PyQt4, I want to present a QPushButton that looks like the down-arrow button in QComboBox. Feasible, and if so, how? I don't need help getting my new widget-combination acting like a QComboBox (see below). I only want the QPushButton…
Johnny Utahh
  • 2,389
  • 3
  • 25
  • 41
0
votes
1 answer

Setting a minimum QDate with todays date

I'm trying to set the minimum date for a QDate box to todays date. I keep getting a syntax. I have set the format which works fine, but the minimum date won't work. self.ui.CreateStuDOB.setDisplayFormat("dd.MM.yyyy") …
MrPython
  • 239
  • 1
  • 3
  • 12
0
votes
1 answer

Qt - getting the current date in mmmm YYYY format (as a string)

I'm trying to retrieve the current date as a string in mmmm YYYY format with QDate. However, I can't pass QDate::currentDate with an argument. Another problem is the fact that the function argument I am passing this in is QString, meaning that g++…
islandmonkey
  • 15
  • 1
  • 1
  • 7
-1
votes
1 answer

How to cancel a QDate choose?

I use Quasar in a Vue2.JS project. I have a QDate, linked with a QPopupEdit ( with a cancel and a set button ). I want to run a specific function when clicking set. If a condition is true, i want to cancel this setting without masking the QDate and…
Roman Diez
  • 29
  • 8
1 2
3