The Following User Says Thank You to rainisto For This Useful Post: | ||
![]() |
2013-08-23
, 08:06
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#152
|
When using right silica components, its autoscrolled to visible area when focused, yes.
![]() |
2013-08-26
, 05:16
|
Posts: 1,269 |
Thanked: 3,961 times |
Joined on May 2011
@ Brazil
|
#153
|
I can only get files from my PC to show in the emulator. How do I move something from the emulator to the PC? I'm being told the folder is read only.
Thanks to anyone who can help.
![]() |
2013-08-27
, 13:45
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#154
|
![]() |
2013-08-29
, 18:00
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#155
|
Separator { color: "red" }
![]() |
2013-08-31
, 15:32
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#156
|
class Settings : public QSettings { Q_OBJECT /**/ public: explicit Settings() : QSettings("Marcin Mielniczuk", "BigText") {} ~Settings() { qDebug() << "Dying"; } /**/ };
import QtQuick 2.0 import Sailfish.Silica 1.0 import BigText 1.0 import "pages" ApplicationWindow { initialPage: MainPage { } Settings {id: settings} }
![]() |
2013-09-02
, 07:19
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#157
|
![]() |
2013-09-02
, 18:24
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#158
|
http://qt-project.org/doc/qt-5.0/qtq...finetypes.html
![]() |
2013-09-03
, 11:05
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#159
|
The Following User Says Thank You to rainisto For This Useful Post: | ||
![]() |
2013-09-03
, 15:23
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#160
|
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.
Q_DECL_EXPORT int main(int argc, char *argv[]) { QScopedPointer<QGuiApplication> app(Sailfish::createApplication(argc, argv)); qmlRegisterType<Settings>("BigText", 1, 0, "Settings"); QScopedPointer<QQuickView> view(Sailfish::createView("main.qml")); Settings settings_object; view->rootContext()->setContextProperty("settings", &settings_object); Sailfish::showView(view.data()); return app->exec(); }
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.