Comments (5)
Does it help, if we use url / QUrl when passing the filename from qml to python?
http://doc.qt.io/qt-5/qtqml-cppintegration-data.html
from qtodotxt2.
yes pass a Qurl object. I will have a look.
from qtodotxt2.
With this opening the file works.
maincontroller Line 243:
@QtCore.pyqtSlot('QUrl')
def open(self, fileUrl):
filename = fileUrl.toLocalFile()
But internally open is called with a string (e.g. on next start of the program).
So maybe we need a wrapper for the slot, which is called from qml. Like:
@QtCore.pyqtSlot('QUrl')
def openFromGui(self, fileUrl):
self.open(fileUrl.toLocalFile())
from qtodotxt2.
I propose method overload
@QtCore.pyqtSlot('QUrl')
@QtCore.pyqtSlot(str)
def open(self, path):
or @QtCore.pyqtSlot(QVariant)
and add test in Python
if isintance(path, QUrl):
path = path.toLocaleFile()
from qtodotxt2.
hopefully fixed now
from qtodotxt2.
Related Issues (20)
- [Design/Feature request] When using "Project" or "Context" sorting, show a header for each project
- Font size HOT 1
- add possibility to change the item order in the filter panel
- keep task selected when changing priority HOT 8
- changing priority don't work on linux HOT 3
- due date with time not displaying in Today category
- RTL text aligned to left
- Question: How can I change interface Icons?
- customize color and font size HOT 3
- install command missing in README
- Seg Fault when running HOT 2
- qtdeclarative5-models-plugin is not installable on Ubuntu 20.04 Focal Fossa HOT 3
- I am ready to help with translation into Russian
- Customise colours HOT 1
- Text not saved if window loses focus while editing (redux) HOT 1
- Can anyone explains code structure ? HOT 4
- Bug in recurring tasks: only accepting up to <10 units of time HOT 1
- leaking of test contents into personal todo.txt?
- Add Projects / Contexts to multiple tasks at once
- crash: IndexError: string index out of range
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtodotxt2.