Comments (5)
How should I implement file chooser ?
from tweetian.
Well, the annoying part is that we really shouldn't need to do anything. There is already image picker in platform, but unfortunately it is not allowed to be used by harbor apps just yet. The second best thing would be to get images from QtDocGallery and just put them to dialog with a silicagridview just like in SDK example. Bad news here again. QtDocGallery is not yet an accepted API either.
So to implement this what is needed is either to wait for APIs to open up or to create a C++ model which retrieves paths of images from filesystem. The images are stored in QStandardPaths::PicturesLocation (there may be subdirectories under it). And the picker would be SilicaDialog with SilicaGridview on it.
from tweetian.
I believe you should reconsider your choice of making new tweet page a dialog. I am having problems while attaching images with tweets since the dialog which contains all the information about image is deleted after accepting while the image upload is going on (See the imageUploader component on new tweet page).
from tweetian.
I'm fine with going back to old approach. UI with dialog is more gesture based, but IMO not necessarily better.
from tweetian.
Can you point me to an example which uses platform image picker ? Are you referring to this http://qt-project.org/doc/qt-5.1/qtquickdialogs/qml-qtquick-dialogs1-filedialog.html ?
EDIT: I found it in Sailfish.Pickers QML module.
from tweetian.
Related Issues (20)
- Compose tweet page in landscape has initially wrong scroll position in Aaslakkajärvi
- Full landscape mode HOT 2
- Adapt to platform style transitions
- Twitter emoji support HOT 2
- Remove the 140 caracters limitation from DM HOT 2
- 0 new notifications - message is not useful
- tweetian notification shows "harbour-tweetian" as group header in notifications
- Feature request: Inline images/videos in list HOT 2
- Only one image is shown even if more are attached to tweet
- Timeline position lost due to refresh triggered by retweet HOT 1
- Tablet version refresh issue HOT 1
- Authentication broken HOT 5
- OnePlus X - the size of the icons HOT 4
- Sailfishos 2.0.2.43 compatibility issues HOT 4
- Images with full-lenght text not showing after Twitter update
- Use of Tweetian Sailfish OS UI idea HOT 1
- Account details page broken with SFOS 2.1.0.9 HOT 4
- Enhancement: A settings switch for showing images in the timeline HOT 1
- Profile page unusable on SailfishX
- Is it possible to skip the 140 character limit in tweets? HOT 1
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 tweetian.