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. Accessing Widgets of UserInterface from another window
Forum Updated to NodeBB v4.3 + New Features

Accessing Widgets of UserInterface from another window

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 951 Views 2 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.
  • M Offline
    M Offline
    Mahesh Arrajella
    wrote on last edited by
    #1

    How to access widgets of a userinterface from other newly created window.....

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tirupathi Korla
      wrote on last edited by
      #2

      @Mahesh-Arrajella

      You can either pass UI pointer to the new class or you can create a member functions in mainwidow and access from new class.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Through a proper interface usually done through signals and slots. Passing internal widgets around is usually a sign of bad architecture as it creates tight coupling and maintenance hell.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        T 1 Reply Last reply
        2
        • M Offline
          M Offline
          Mahesh Arrajella
          wrote on last edited by
          #4

          Why don't you give me an example code

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Through a proper interface usually done through signals and slots. Passing internal widgets around is usually a sign of bad architecture as it creates tight coupling and maintenance hell.

            T Offline
            T Offline
            Tirupathi Korla
            wrote on last edited by
            #5

            @SGaist said in Accessing Widgets of UserInterface from another window:

            Through a proper interface usually done through signals and slots. Passing internal widgets around is usually a sign of bad architecture as it creates tight coupling and maintenance hell.

            Agreed. so i also suggested creating function which access UI..

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              This forum is full of questions similar to yours already answered.
              Did you take the time to search through it ?
              Did you take a look at the Qt examples for designer based widgets ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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