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. QtQuick.Dialogs: 2 question
Forum Updated to NodeBB v4.3 + New Features

QtQuick.Dialogs: 2 question

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 558 Views 1 Watching
  • 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.
  • U Offline
    U Offline
    unixmania
    wrote on last edited by
    #1

    1-)
    for this example:
    http://qt-project.org/doc/qt-5/qml-qtquick-dialogs-messagedialog.html#standardButtons-prop

    yes and yestoall has same signal.how to handle yes and yestoAll button for diffrerent action.
    same is no and notoall too.

    2-)i cannot manage "standardButtons" property from c++. get error like this "undefined variable <StandardButton.Yes>" . to doing this i make a workaround such like:

    cpp:
    @root->setProperty("str_button","StandardButton.Yes | StandardButton.No"); // workaround. see qml file.@
    qml:
    @
    property string str_button:"StandardButton.OK"
    standardButtons :Number(eval(str_button)) // TODO
    @
    regards.

    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