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. MessageDialog with configurable buttons / customized button text?
Forum Updated to NodeBB v4.3 + New Features

MessageDialog with configurable buttons / customized button text?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 328 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.
  • SeDiS Offline
    SeDiS Offline
    SeDi
    wrote on last edited by
    #1

    Hi all,
    is it possible to change the Text of the standard buttons in a MessageDialog or to create custom button text like "erase all", "leave in pool" or "remove only"?

    Before, I had achieved that by hacking the internal implementation details (parsing children of contentItem, setting different text proprties) like this:

    import QtQuick.Dialogs 1.3
    MessageDialog {
        id: messageDialogItem
        ...
    }
    // elsewhere
    messageDialogItem.contentItem.children[i].text = newYesToAllText
    

    But this doesn't work any more, probably because the MessageDialog seems to be native on Windows now (see different post).

    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