Hi all,
Thank you guys for your help.
I tried using this instead
import org.nemomobile.folderlistmodel 1.0 (used in filemanager)
of this
import Qt.labs.folderlistmodel 1.0 (used in Music)
homePath() is usable and works in the first of them, but not in the one
I'm currently using, so I have to
For things that are not available from QML, I think Ubuntu team would
provide a common interface for most required stuff people need to use
in QML, like Qt provides static functions through Qt.,
Ubuntu would provide among others:
QString Ubuntu.homePath()
QString Ubuntu.getEnv( QString var )
On 05/14/2013 10:16 PM, Daniel Holm wrote:
> Hi all,
>
> I'm trying to figure out how to get the home dir of the user with QML,
> and I can see that Ubuntu filemanager, the core app, has a variable
> that it uses to get the home dir: homePath()
>
> I can't find anything else about it, and I can't u
Hi Daniel,
Ubuntu filemanager uses QDir::homePath() because it uses a C++ plugin.
I do not know any way of getting it in QML, but, I think you can use the
File Manager plugin to get this information in your application, like this:
import org.nemomobile.folderlistmodel 1.0
FolderListModel
Hi all,
I'm trying to figure out how to get the home dir of the user with QML,
and I can see that Ubuntu filemanager, the core app, has a variable that
it uses to get the home dir: homePath()
I can't find anything else about it, and I can't use it in Music.
Could someone please help me? This
5 matches
Mail list logo