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. Promoting QWidget to custom class and Q_PROPERTY

Promoting QWidget to custom class and Q_PROPERTY

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

    Is there a way to see custom properties on a promoted QWidget to a custom class in the ui editor? I tried seeing the properties, but it only shows up as much as the QWidget ones. I don't really want to integrate the custom widget into the editor so I worked around it, but was wondering if there was something simple I was missing. I tried adding a dynamic property, but that won't take affect the constructor has finished for that object.

    C++ is a perfectly valid school of magic.

    J.HilkJ 1 Reply Last reply
    0
    • fcarneyF fcarney

      Is there a way to see custom properties on a promoted QWidget to a custom class in the ui editor? I tried seeing the properties, but it only shows up as much as the QWidget ones. I don't really want to integrate the custom widget into the editor so I worked around it, but was wondering if there was something simple I was missing. I tried adding a dynamic property, but that won't take affect the constructor has finished for that object.

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @fcarney
      I don't think so, as QtDesigner does not even show all Q_Properties of the standard widgets!


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      1

      • Login

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