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. To create JavaBean-like getter in Qt Creator
Qt 6.11 is out! See what's new in the release blog

To create JavaBean-like getter in Qt Creator

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 813 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.
  • VinnieV Offline
    VinnieV Offline
    Vinnie
    wrote on last edited by
    #1

    Creator creates a property, by typing Q_PROPERTY and let the auto completion fill the rest, using the myVar() and setMyVar() as the getter and setter. I have not been able to find a way to configure it to use JavaBean-style getMyVar() instead. Any hints on that? Thanks!

    kshegunovK 1 Reply Last reply
    0
    • VinnieV Vinnie

      Creator creates a property, by typing Q_PROPERTY and let the auto completion fill the rest, using the myVar() and setMyVar() as the getter and setter. I have not been able to find a way to configure it to use JavaBean-style getMyVar() instead. Any hints on that? Thanks!

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @Vinnie

      Q_PROPERTY(MyVarType myVar READ getMyVar WRITE setMyVar)
      

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      2

      • Login

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