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. hi, how do i use the parent variable to pass methods to an answer form
Forum Updated to NodeBB v4.3 + New Features

hi, how do i use the parent variable to pass methods to an answer form

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 391 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.
  • milhaoM Offline
    milhaoM Offline
    milhao
    wrote on last edited by
    #1

    hi, how do i use the parent variable to pass methods to an answer form in qt

    jsulmJ 1 Reply Last reply
    0
    • milhaoM milhao

      hi, how do i use the parent variable to pass methods to an answer form in qt

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @milhao Please learn to ask understandable questions!
      If you want to call something from child widget to parent: this would be bad design! Child widgets should not know anything about parent widget. Better is to emit a signal from child widget. This signal can be connected to a slot in parent.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      milhaoM 2 Replies Last reply
      1
      • jsulmJ jsulm

        @milhao Please learn to ask understandable questions!
        If you want to call something from child widget to parent: this would be bad design! Child widgets should not know anything about parent widget. Better is to emit a signal from child widget. This signal can be connected to a slot in parent.

        milhaoM Offline
        milhaoM Offline
        milhao
        wrote on last edited by
        #3

        @jsulm and the following I want to pass the value of the race combobox from the mainwindow to the level response form

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

          Hi,

          Add proper APIs to your child widgets and let the parent set the values.

          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
          • jsulmJ jsulm

            @milhao Please learn to ask understandable questions!
            If you want to call something from child widget to parent: this would be bad design! Child widgets should not know anything about parent widget. Better is to emit a signal from child widget. This signal can be connected to a slot in parent.

            milhaoM Offline
            milhaoM Offline
            milhao
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0

            • Login

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