[Interest] Qt 5.7 - Using File Selectors with Qt Quick Controls 2

ekke ekke at ekkes-corner.org
Sun May 8 12:59:05 CEST 2016


from

http://doc-snapshots.qt.io/qt5-5.7/qtquickcontrols2-fileselectors.html

http://doc-snapshots.qt.io/qt5-5.7/qtquickcontrols2-deployment.html

I know that I can use file selectors for

+material
+universal

combining this with selectors for android, windows, ios, it's the best
to do it this way:

+android/qtquickcontrols2.conf+ios/qtquickcontrols2.conf
+windows/qtquickcontrols2.conf

so far so good - here some questions: Having images used by all
platforms and some for android and others for ios, where to place them ?

/images for common images
/+android/images for the android specific images
/+ios/images for ios specific images

what if (per ex. for a demo app) user can switch between universal and
material and using some images specific to universal, others to material
and this in combination with ios and android - is this possible via file
selector or will it only work for one style per platform. would be no
problem, because in real-life-usecases there would be only one style.
going one step ahead and let user decide to use dark or light theme. are
there plans for 5.7 / 5.8 to have file selectors for this, too ? if yes
- where probably those images should be located having platform - style
- theme ? I could place images for dark and light in same images folder
and differentiate by a name as Google does this for Material icons:
android versions getting _black for light theme and _white for dark
theme, where Google's Material images for iOS only getting _white for
dark theme and no extra naming for light theme from my feeling I think
the best would be always to use the same image name and to have
different folders like

images/dark
images/white

then constructing the image src name as

"qrc:/"+myThemeFolder+"/menu.png"

thanks for any hints, insights and tips - just writing next articles for
http://j.mp/qt-x thx ekke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160508/36a1c3a3/attachment.html>


More information about the Interest mailing list