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. Getting widget names at runtime

Getting widget names at runtime

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 11.8k 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.
  • T Offline
    T Offline
    tanmay2227
    wrote on last edited by
    #1

    hey
    i am working with tab widget and i need to make a component that can apply changes to all the the widgets placed inside a particular tabbed pane. thus i need to get the name or id of the widgets at run time . also from widgets inside the tab i need to apply changes to the tab container so i need the containers name and id too . what is the best possible solution . can you please help.

    Tanmay Priyadarshi

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kaivolde
      wrote on last edited by
      #2

      Hi,

      you can use the methods
      setObjectName and objectName for your purpose (see QObject class).

      There are already helper-methods findChild and findChildren which you can use for finding special child(ren).

      Regards

      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