Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. MessageDialog QML Type does not accept common properties
Forum Updated to NodeBB v4.3 + New Features

MessageDialog QML Type does not accept common properties

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmlpropertiesdialogsm16
1 Posts 1 Posters 746 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.
  • A Offline
    A Offline
    ars1614
    wrote on last edited by
    #1

    Hi everybody!
    I am using this type for generating user confirming actions.
    This is the code I am writing:

    MessageDialog {
            id: messageDialog
            property string titleStr: ''
            property string textStr: ''
    
            title: titleStr
            text: textStr
            standardButtons: StandardButton.Yes | StandardButton.No
            icon: StandardIcon.Question
    
            onYes: {
                ...
            }
    
            onNo: {
                ...
            }
    } 
    

    It is not accepting the properties: title, text, standartButtons... they are in red with (M16) error, but it compiles and I can run it.

    Any reason?

    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