Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Setting a signal to signal connection with QtDesigner

Setting a signal to signal connection with QtDesigner

Scheduled Pinned Locked Moved Qt Creator and other tools
designersignal to signa
2 Posts 2 Posters 1.1k 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
    TCCGemini
    wrote on last edited by
    #1

    Hello,

    Using Qt Creator, I wish to connect a widget signal to another widget signal. How can I do that ?
    It seems I cannot do it from the Qt Designer tool itself. I therefore tried to modify myself the .ui file as shown below, with no success either:

    <connection>
    <sender>m_disableWarningCheckBox</sender>
    <signal>toggled(bool)</signal>
    <receiver>MyDialog</receiver>
    <signal>DisplayWarningToggled(bool)</signal>
    </connection>

    The generated ui_File.h is not connecting the check box signal to the dialog signal.

    Is it a feature missing in .ui files ? Or did I misunderstood something ?
    Thank you.

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

      It looks like it is not possible to connect a signal to a signal in the designer. You will need to do this in your code. But I would not do this in ui file! Because next time you use the designer it will be overwritten!

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

      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