Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
for questions specific to the 3.x series of QGIS.
0
votes
1
answer
192
views
Using setAttribute of QDateTimeEdit in PyQGIS
I don't see my error in code. I can't save the current time into QDateTime field 'actualDate'. I get None by setDateTime(QDateTime.currentDateTime()).
mylayer = self.layer
actualDate = mylayer.fields( …
2
votes
Using setAttribute of QDateTimeEdit in PyQGIS
I found a solution by myself:
datetimenow = j.setAttribute(actualDate, now)
self.dlg.actualDate.setAttribute(datetimenow)
I do not have to setDateTime() when I defined already the currentDateTime …