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. Dynamic widgets AutomationId property does not exist
Qt 6.11 is out! See what's new in the release blog

Dynamic widgets AutomationId property does not exist

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.0k 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.
  • A Offline
    A Offline
    Alain Royer
    wrote on last edited by
    #1

    Widgets created with the designer have an AutomationId but dynamic widgets (created using new) don't. Is it possible for dynamic widgets to have an AutomationId ?

    Capture01.PNG

    Capture02.PNG

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Something else is going on as Designer also just new the widgets at runtime.
      (the UI file is used to generate source code)

      Look in the ui->setupUI(this) and see if it sets something
      you also want.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alain Royer
        wrote on last edited by
        #3

        Thanks! A call to setObjectName solved the problem.

        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