Questions tagged [qtimeedit]

7 questions
1
vote
1 answer

QTimeEdit locks hour spining with range less than one hour with keyboardTracking deactivated

I have a QTimeEdit in Python with a predefined range less than one hour, let's say from 08:45:00 to 09:15:00. I read about the problematic of entering a new value which gets out these limits when keying…
dmjf08
  • 143
  • 7
1
vote
1 answer

Using QTimeEdit with time_t - Adapter pattern C++

I need to make an adapter for QTimeEdit to use it with time_t in: constructor QTimeEdit(time_t) void setTime(time_t) time_t time() I did 1. and its working. class QTimeEditAdapter: public QTimeEdit { public: QTimeEditAdapter(time_t t) { …
chidan
  • 17
  • 4
1
vote
2 answers

How to display Hour, Minute values from QTimeEdit to corresponding LCD's?

I used QTimeEdit to edit time. But when I clicked "ok" the output is HOUR: 16 MINUTE: 8, no matter what number I put in QTimeEdit. Thus, I want to know what function I must add to correct the set time in QTimeEdit. from PyQt5 import QtCore, QtGui,…
1
vote
1 answer

How can I change the step size of QTimeEdit?

QSpinBox has a singleStep property which determines how much the value changes when the step up/down buttons are pressed. I am looking for an analogous behaviour in QTimeEdit auto t = new QTimeEdit (); t->setDisplayFormat ("m:ss.zzz"); t->setTime…
spraff
  • 32,570
  • 22
  • 121
  • 229
0
votes
1 answer

Python PyQt5 - Convert QTime to python time object

I have to solve this error: day_frequency_parameters = self.main_self.ui_scheduled_transmitions_create_window.daily_one_time_timeEdit.time().strftime('%H:%M:%S') AttributeError: 'QTime' object has no attribute 'strftime' where…
Chris P
  • 2,059
  • 4
  • 34
  • 68
0
votes
0 answers

How to get time from QTimeedit class

I created a QTimeedit class in pyqt5. I want to get the time that I set in it. How to get the time from qtimeedit?
Anesh
  • 453
  • 3
  • 7
  • 15
0
votes
1 answer

DateTimeEdit, TimeEdit stepBy

I looked for solutions, but I did not find them. I wanted to make it into a QTimeEdit by pressing the up or down arrow on the minutes, and only those, step 10. I wanted to write in the stylesheet. I've tried these solutions, but they do not…
Vittorio
  • 1
  • 2