Reply
Thread Tools Search this Thread
marxian's Avatar
Posts: 2,131 | Thanked: 7,642 times | Joined on Aug 2010 @ Wigan, UK
#31
Some more changes:
  • QDeclarativeSettingsPlugin making QSettings API accessible via QML.
  • platformWindow context now has a takeScreenShot() method, which uses the static QPixmap::grabWidget() method to take a screenshot and save it to the specified filename.

Example:

Code:
Page {
    id: root

    Settings {
        id: settings

        organizationName: "Me"
        applicationName: "MyApplication"
    }

    Button {
        id: button
       
        anchors.centerIn: parent
        text: "Screenshot"
        onClicked: platformWindow.takeScreenShot(settings.value("screenShotFolder", "/home/user/MyDocs/Images/") + "screenshot.png") // x, y, width, height, scaledWidth and scaledHeight can also be specified.
    }
}
First example application is a web browser with support for tabbed browsing and bookmarks:







https://github.com/marx1an/qt-compon...amples/browser

Pretty basic atm, but I'll add some more features later.
__________________
MusiKloud - A SoundCloud client for the Nokia N9

cuteTube - YouTube and Dailymotion client.

MeeFolders - Organise your N9 applications into folders.

Hildon Event Feed - Event Feed application and homescreen widget.

toBuntu - Ubuntu One client.

QDL - GUI download manager.

Last edited by marxian; 01-27-2013 at 08:26 PM. Reason: s/organisation/organization
 

The Following 2 Users Say Thank You to marxian For This Useful Post:
qwazix's Avatar
Community Council | Posts: 2,275 | Thanked: 4,135 times | Joined on Jan 2010
#32
When referencing the Menu directly (and not as part of pageStackWindow), I get the following error. I tried to dig down to the PopUp element but it doesn't seem to inherit or otherwise use dialog.

Code:
ReferenceError: Can't find variable: DialogStatus
                        ScriptAction { script: root.status = DialogStatus.Open }
what can I do to get over that?

Menu implementation as follows
Code:
    Menu{
        id: menu
        MenuLayout{
            Button{ text: "adasd"}
        }
    }
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 
marxian's Avatar
Posts: 2,131 | Thanked: 7,642 times | Joined on Aug 2010 @ Wigan, UK
#33
Originally Posted by qwazix View Post
When referencing the Menu directly (and not as part of pageStackWindow), I get the following error. I tried to dig down to the PopUp element but it doesn't seem to inherit or otherwise use dialog.

Code:
ReferenceError: Can't find variable: DialogStatus
                        ScriptAction { script: root.status = DialogStatus.Open }
what can I do to get over that?

Menu implementation as follows
Code:
    Menu{
        id: menu
        MenuLayout{
            Button{ text: "adasd"}
        }
    }
The MenuLayout should be assigned to the tools property of the Menu:

Code:
    Menu{
        id: menu
        tools: MenuLayout{
            Button{ text: "adasd"}
        }
    }
__________________
MusiKloud - A SoundCloud client for the Nokia N9

cuteTube - YouTube and Dailymotion client.

MeeFolders - Organise your N9 applications into folders.

Hildon Event Feed - Event Feed application and homescreen widget.

toBuntu - Ubuntu One client.

QDL - GUI download manager.
 
Posts: 73 | Thanked: 152 times | Joined on Jan 2011 @ Czech Republic
#34
Great job. Could anyone please add a short how-to on the compilation?

I have tried standard qmake && make, but it complains about 'QSystemDeviceInfo' missing.
The reason might be I try to compile it on my Desktop instead of N900, but since my Desktop is my primary development environment, it is much needed. Thank you.

Last edited by nodevel; 03-11-2013 at 05:23 AM.
 

The Following User Says Thank You to nodevel For This Useful Post:
Posts: 2 | Thanked: 1 time | Joined on Mar 2013
#35
Originally Posted by nodevel View Post
Could anyone please add a short how-to on the compilation?
You need to install qtmobility first before you can compile Hildon Qt Components.
 

The Following User Says Thank You to shentey For This Useful Post:
Posts: 73 | Thanked: 152 times | Joined on Jan 2011 @ Czech Republic
#36
Originally Posted by shentey View Post
You need to install qtmobility first before you can compile Hildon Qt Components.
Thank you, that was it - therefore I made a Chakra CCR package here: http://chakra-linux.org/ccr/packages.php?ID=5170 (for anyone interested).

I am just not sure about the licensing...

EDIT: It builds fine, but fails to run with:
Code:
plugin cannot be loaded for module "org.hildon.components": Cannot load library /usr/lib/qt/imports/org/hildon/components/libhildonplugin.so: (/usr/lib/qt/imports/org/hildon/components/libhildonplugin.so: undefined symbol: _ZNK20QDeclarativeSettings10metaObjectEv) 
     import org.hildon.components 0.1
__________________
I don't understand why would anyone use a random, insecure, proprietary chatting solution as WhatsApp, when you have so many safe and open alternatives.
Please, don't use it. If this doesn't convince you, read more here.
The worst thing is even if you don't use it, it takes one ***** who does and has your number in his/her contacts and your number is uploaded to servers of this insane company for 'anyone interested' to read.
Thumbs up for everyone supporting WhatsApp on Maemo. NOT

Last edited by nodevel; 03-17-2013 at 10:46 AM.
 
Posts: 2 | Thanked: 1 time | Joined on Mar 2013
#37
Originally Posted by nodevel View Post
EDIT: It builds fine, but fails to run with:
Code:
plugin cannot be loaded for module "org.hildon.components": Cannot load library /usr/lib/qt/imports/org/hildon/components/libhildonplugin.so: (/usr/lib/qt/imports/org/hildon/components/libhildonplugin.so: undefined symbol: _ZNK20QDeclarativeSettings10metaObjectEv) 
     import org.hildon.components 0.1
Yep, I've experienced that runtime error as well. I've created a pull request for it: https://github.com/marx1an/qt-components-hildon/pull/1

Note that you'll have to do some further adoptions of the code to load the images from the right places in the desktop version. Moreover, you also need to install the Hildon icons and theme images somewhere in the system, otherwise you'll get complaints at runtime that these can't be found.
 
Posts: 158 | Thanked: 68 times | Joined on May 2011 @ Bulgaria
#38
Hi Marxian,thanks for these tools,but have you any plans to put your work in repo,I asked because for me is very hard to understand how to run hildon qt-components on my n900
regards
 

The Following User Says Thank You to disappear For This Useful Post:
Reply

Tags
hildon, qml components

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 11:36 PM.