maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Quick Widgets 0.3.2 - quickly deploy qt quick as widgets (https://talk.maemo.org/showthread.php?t=65769)

GreatGonzo 2010-11-17 12:17

[ANNOUNCE] Quick Widgets 0.3.2 - quickly deploy qt quick as widgets
 
2 Attachment(s)
Hi all,

I had a stab at my first application - called quick-widgets. It allows to run Qt Quick applications (qml files) as desktop (hildon-home) widgets. The code is heavily based on venemo's q-extras and sticky notes. So A BIG THANKS for doing all the hard work.

There are plenty of qml examples out there you can use., e.g. http://doc.qt.nokia.com/qt-maemo-4.7...eexamples.html


Features
  • as said - run qml applications as widgets
  • similar to qmlviewer, provide
    Code:

    runtime.isActiveWindow
    to suspend the widget.
  • use the size of the qml application or specify custom size which will scale the qml if programmed to allow it
  • as sticky-notes, restore all widgets on reboot
  • access to QProcess qml wrapper, see example in /opt/quick-widgets/examples
  • dynamically resize widget to content size
  • support from qt mobility v0.2.3
  • add widgets from command-line v0.2.5
  • make widget auto-rotate with the phone orientation (customisable) v0.3.0

Usage
  • enable extras-devel and install
  • start the application to each time you want to add a new widgets
  • select a qml file
  • optionally give it a fixed size which will scale the widget
  • optionally enable auto-rotation of the widget

To Do
  • listen to feedback :D

I am looking forward to people posting their useful widgets.

Examples
I have attached the source for building the qml Process plugin. I am using this on my Desktop for creating widgets under Qt SDK 1.1. See README for very basic instructions.

MJGibb 2010-11-17 13:49

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Sorry - I know this goes back a couple of steps on your post, but how do I go from http://doc.qt.nokia.com/qt-maemo-4.7...otoviewer.html looking longingly at this qml demo of a photo viewer app to getting it on my phone as a demo?

cfh11 2010-11-17 13:53

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
FYI the link has an extra "http" in it

maddude 2010-11-17 21:42

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Quote:

Originally Posted by GreatGonzo (Post 876005)
Hi all,

I had a stab at my first application - called quick-widgets. It allows to run Qt Quick applications (qml files) as desktop (hildon-home) widgets. The code is heavily based on venemo's q-extras and sticky notes. So A BIG THANKS for doing all the hard work.

There are plenty of qml examples out there you can use., e.g. http://http://doc.qt.nokia.com/qt-ma...eexamples.html


Features
  • as said - run qml applications as widgets
  • similar to qmlviewer, provide
    Code:

    runtime.isActiveWindow
    to suspend the widget.
  • use the size of the qml application or specify custom size which will scale the qml if programmed to allow it
  • as sticky-notes, restore all widgets on reboot

Usage
  • Download the deb - I still have to put it in extras-devel.
  • install dependencies -
    Code:

    apt-get install q-extras libhildon-extras1
  • install quick-widgets -
    Code:

    dpkg -i quick-widgets_0.1.0_armel.deb
  • start the application to add new widgets

To Do
  • write qml bindings to system calls
  • support custom c++ bindings
  • listen to feedback :D

I am looking forward to people posting their useful widgets.

ok how do o get widgets working, for example i would like to have that web browser as a widget, but how ?

GreatGonzo 2010-11-17 22:06

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Quote:

Originally Posted by MJGibb (Post 876068)
Sorry - I know this goes back a couple of steps on your post, but how do I go from http://doc.qt.nokia.com/qt-maemo-4.7...otoviewer.html looking longingly at this qml demo of a photo viewer app to getting it on my phone as a demo?

This application is for use of qml as desktop widgets. If you want to run qml as separate applications you can use the qmlviewer which is in the package qt4-declarative-qmlviewer. Then just run the qmlviewer and load the qml file.

This might be worth packaging up son one can easily create their own application wrappers as well.

mece 2010-11-17 22:13

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
great stuff. Any particular reason this isn't in devel?

GreatGonzo 2010-11-17 22:19

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Yep - I didn't have time to set it up yet. Small children can be a pain and the wife wants some attention too ;)

GreatGonzo 2010-11-17 22:24

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Quote:

Originally Posted by maddude (Post 876458)
ok how do o get widgets working, for example i would like to have that web browser as a widget, but how ?

Probably not a good idea as this is full screen :eek: Use the qmlviewer for this. My application is mainly targeted at widgets.

I will post an example of a widget which shows a webpage and updates it periodically soon.

mece 2010-11-17 22:29

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Quote:

Originally Posted by GreatGonzo (Post 876492)
Yep - I didn't have time to set it up yet. Small children can be a pain and the wife wants some attention too ;)

Haha Yep, you're preaching to the quire :)

PS you could have uploaded to extras in the time it took to post that reply... ;)
dpkg-buildpackage -sn -S -rfakeroot
https://garage.maemo.org/extras-assi...dex.php?step=2

GreatGonzo 2010-11-17 23:03

Re: [ANNOUNCE] Quick Widgets - quickly deploy qt quick as widgets
 
Thanks! Done now. Digging through the docs and applying for upload permissions takes some time though. It isn't really the most transparent process. Hence me creating a package to make things easier from qml widgets


All times are GMT. The time now is 19:34.

vBulletin® Version 3.8.8