Git Product home page Git Product logo

Comments (5)

siteshwar avatar siteshwar commented on September 16, 2024

How should I implement file chooser ?

from tweetian.

veskuh avatar veskuh commented on September 16, 2024

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.

siteshwar avatar siteshwar commented on September 16, 2024

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.

veskuh avatar veskuh commented on September 16, 2024

I'm fine with going back to old approach. UI with dialog is more gesture based, but IMO not necessarily better.

from tweetian.

siteshwar avatar siteshwar commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.