Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Choose and change user settings in QML
Forum Updated to NodeBB v4.3 + New Features

Choose and change user settings in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 167 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • DiegOneD Offline
    DiegOneD Offline
    DiegOne
    wrote on last edited by DiegOne
    #1

    Good afternoon QT Forum,

    my goal today is to set user application settings in QML using Qt.application.name.
    I have an application that starts in a page where the user can select its profile name/settings clicking on a button. At this point at button click the application starts with some users specific settings. The doc file ( https://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html#:~:text=%23include <QGuiApplication> %23include,Qt.application.domain. ) states that the specific setting can also be controlled in QML via : Qt.application.name, Qt.application.organization, Qt.application.domain.
    However this command is not working for me. My code is simply:

    onClicked{
    Qt.application.name("myUserName")
    }
    

    I don't even have the .name property listed in the available properties of Qt.application

    Could you help me explaining where I am wrong? Thanks

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved