Reply
Thread Tools
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#151
Originally Posted by marmistrz View Post
Btw. if a textfield is on the bottom, the vkb covers it whole. Will it be fixed in the final release?
When using right silica components, its autoscrolled to visible area when focused, yes.
__________________
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.
 

The Following User Says Thank You to rainisto For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#152
Originally Posted by rainisto View Post
When using right silica components, its autoscrolled to visible area when focused, yes.
So, is it my mistake that it doesn't scroll, or do I have to wait for a more mature release of Silica?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 1,269 | Thanked: 3,961 times | Joined on May 2011 @ Brazil
#153
Originally Posted by youngcalihottie View Post
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.
You are rigth. The solution is to use "scp". I've updated the 1st post, see 3rd tip.
__________________
Python, C/C++, Qt and CAS developer. For Maemo/MeeGo/Sailfish :
Integral, Derivative, Limit - calculating mathematical integrals, derivatives and limits. SymPy - Computer Algebra System.
MatPlotLib - 2D & 3D plots in Python. IPython - Python interactive shell.
-- My blog about mobile & scientific computing ---
Sailfish : Sony Xperia X, Gemini, Jolla, Jolla C, Jolla Tablet, Nexus 4. Nokia N9, N900, N810.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#154
Please add to the OP:

Where are the emulator filesystem files?

(when ssh-ed to the emulator) /srv/mer/targets/<target name>
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#155
I'm trying to see how the separator works. I included it into the Column, and defined it like that

Code:
        Separator { color: "red" }
but no changes visible. What am I doing wrong?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#156
Hi,

I have a problem with exposing a C++ object to QML. It inherits QSettings,

Code:
class Settings : public QSettings
{
    Q_OBJECT
    /**/
public:
    explicit Settings() : QSettings("Marcin Mielniczuk", "BigText") {}
    ~Settings() { qDebug() << "Dying"; }

    /**/
};
I noticed that the destructor isn't called at all. (there's not destructor output)

I create the object like that:
Code:
import QtQuick 2.0
import Sailfish.Silica 1.0
import BigText 1.0
import "pages"

ApplicationWindow
{
    initialPage: MainPage { }
    Settings {id: settings}
}
What am I doing wrong?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#157
Originally Posted by marmistrz View Post
What am I doing wrong?
http://qt-project.org/doc/qt-5.0/qtq...finetypes.html
__________________
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.
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#158
I'm doing everything like in the doc page... (or do I just think I'm doing like that?)
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#159
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.
__________________
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.

Last edited by rainisto; 2013-09-03 at 11:14.
 

The Following User Says Thank You to rainisto For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#160
Originally Posted by rainisto View Post
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.
Yep, I didn't copy main.cpp. If I didn't register the type, I couldn't use it at all

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[])
{
    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();
}
Guess it's because of too late setting the context property, but I have no idea how to fix it.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-09-03 at 16:45.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:12.