![]() |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Please add to the OP:
Where are the emulator filesystem files? (when ssh-ed to the emulator) /srv/mer/targets/<target name> |
Re: Sailfish SDK Alpha Qt5 released
I'm trying to see how the separator works. I included it into the Column, and defined it like that
Code:
Separator { color: "red" } |
Re: Sailfish SDK Alpha Qt5 released
Hi,
I have a problem with exposing a C++ object to QML. It inherits QSettings, Code:
class Settings : public QSettings I create the object like that: Code:
import QtQuick 2.0 |
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
Quote:
|
Re: Sailfish SDK Alpha Qt5 released
At least your example copypaste was lacking qmlRegisterType and import statements in qml for the Settings type. Or you just didn't copypaste all your code.
And if your settings class is a singleton, like settings usually are, you most likely want to use setContextProperty instead. |
Re: Sailfish SDK Alpha Qt5 released
Quote:
This is a workaround which might work at this case, but what if it wasn't a signleton object? Is there some special magic about non-singleton objects and destructors? /edit: I tried to use the context property approach, but it says that settings is not defined: Code:
Q_DECL_EXPORT int main(int argc, char *argv[]) |
All times are GMT. The time now is 15:50. |
vBulletin® Version 3.8.8