Re: [SailfishDevel] Accessing C++ properties from QML

2015-08-13 Thread Antonio Mancini
> > for properties system you should use Q_PROPERTY macro inside your class. Since i have to access properties of a class declared inside another class i find using the macro Q_PROPERTY a little confusing. > Actually, I think you're creating a new instance of the FirstPage.qml > component using

Re: [SailfishDevel] Accessing C++ properties from QML

2015-08-13 Thread Antonio Mancini
onwindow_instance is not defined > 2015-08-13 15:17 GMT+02:00 Andrea Bernabei : > Hi, > > try having a look at this > http://doc.qt.io/qt-5/qtqml-cppintegration-interactqmlfromcpp.html > > 2015-08-13 14:14 GMT+01:00 Antonio Mancini : > >> Hi all, i need to access a property of a C+

[SailfishDevel] Accessing C++ properties from QML

2015-08-13 Thread Antonio Mancini
Hi all, i need to access a property of a C++ Class, declared inside another class, from QML. This is the principal class: #ifndef MANAGER_H > #define MANAGER_H > > #include > #include > #include > #include "monster.h" > #include "move.h" > #include "turnmanager.h" > > > class Manager : public

[SailfishDevel] Hardcoded Path

2015-03-12 Thread Antonio Mancini
Hi all, I have some functions for writing/reading files written in c++ I want to use the XDG Base Directory Specification but i don't know how to use it. For example at the moment i have the directory set like this: QDir dir("/home/nemo/.local/share/harbour-sailtris"); if (!dir.exists())

Re: [SailfishDevel] Main qml file not found when Deploying

2015-03-10 Thread Antonio Mancini
bour rules no doubt require some specific application-specific import directory to be defined and used by your app. > > Kind regards, > Chris. > > ________ > From: devel-boun...@lists.sailfishos.org [ devel-boun...@lists.sailfishos.org] on behalf of Antonio

Re: [SailfishDevel] Main qml file not found when Deploying

2015-03-08 Thread Antonio Mancini
ect to rpm with no problems . Clean your build > folder and do a fresh build. > > 06.03.2015 01:03, Antonio Mancini пишет: > > > This is the link to the .pro file on github > > https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro > > Il gio mar 5 06:50:04 201

Re: [SailfishDevel] Main qml file not found when Deploying

2015-03-05 Thread Antonio Mancini
This is the link to the .pro file on github https://github.com/BillyHalley/SailTris/blob/master/SailTris.pro Il gio mar 5 06:50:04 2015 GMT+0100, Andrey Kozhevnikov scrive: > show your pro file/link to github project. > > 05.03.2015 00:15, Antonio Mancini пишет: > > When deploying

[SailfishDevel] Main qml file not found when Deploying

2015-03-04 Thread Antonio Mancini
When deploying my application as an RPM package i have this error: [W] contextFactory:108 - Could not create scene graph context for device 'customcontext' - check that plugins are installed correctly in /usr/lib/qt5/plugins [D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegrati

[SailfishDevel] Infinite (?) PushUpMenu

2015-02-15 Thread Antonio Mancini
Hi, i have a simple PushUpMenu in my app and it behaves strangely, i can push even if there are no more items. This is a screenshot: https://www.dropbox.com/s/2z0owyi5m6rhuua/Screenshot-15-02-15-19-41-30.png?dl=0 My page is structured like this: Page { id: page SilicaFlickable {