Active Topics

 



Notices


Reply
Thread Tools
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#1
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

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.
Attached Images
  

Last edited by GreatGonzo; 2011-05-07 at 02:57.
 

The Following 43 Users Say Thank You to GreatGonzo For This Useful Post:
Posts: 26 | Thanked: 3 times | Joined on Jul 2010 @ Glasgow
#2
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?

Last edited by MJGibb; 2010-11-17 at 14:03. Reason: spelling
 
cfh11's Avatar
Posts: 1,062 | Thanked: 961 times | Joined on May 2010 @ Boston, MA
#3
FYI the link has an extra "http" in it
__________________
Want to browse streamlined versions of websites automatically when in 2g? Vote for this brainstorm.

Sick of your cell signal not reconnecting after coming out of a bad signal area? Vote for this bug.
 
Posts: 52 | Thanked: 13 times | Joined on Nov 2010
#4
Originally Posted by GreatGonzo View Post
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

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's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#5
Originally Posted by MJGibb View Post
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.
 

The Following User Says Thank You to GreatGonzo For This Useful Post:
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#6
great stuff. Any particular reason this isn't in devel?
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.
 
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#7
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's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#8
Originally Posted by maddude View Post
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 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.
 

The Following User Says Thank You to GreatGonzo For This Useful Post:
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#9
Originally Posted by GreatGonzo View Post
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
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.

Last edited by mece; 2010-11-17 at 22:35.
 
GreatGonzo's Avatar
Posts: 275 | Thanked: 389 times | Joined on Feb 2010 @ Sydney
#10
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
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:51.