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. hints in .ui files?
Forum Updated to NodeBB v4.3 + New Features

hints in .ui files?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 432 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.
  • T Offline
    T Offline
    tkansgar
    wrote on last edited by
    #1

    Hi,

    we found these "hints" inside the connection specifications in some old .ui files:

    <connections>
      <connection>
       <sender>buttonBox</sender>
       <signal>accepted()</signal>
       <receiver> ... </receiver>
       <slot>accept()</slot>
       <hints>
        <hint type="sourcelabel">
         <x>248</x>
         <y>254</y>
        </hint>
        <hint type="destinationlabel">
         <x>157</x>
         <y>274</y>
        </hint>
       </hints>
      </connection>
    ...
    

    Does anyone know the purpose of these hints? They seem to be a kind of coordinates. But what are they doing in signal slot connections?

    JonBJ 1 Reply Last reply
    0
    • T tkansgar

      Hi,

      we found these "hints" inside the connection specifications in some old .ui files:

      <connections>
        <connection>
         <sender>buttonBox</sender>
         <signal>accepted()</signal>
         <receiver> ... </receiver>
         <slot>accept()</slot>
         <hints>
          <hint type="sourcelabel">
           <x>248</x>
           <y>254</y>
          </hint>
          <hint type="destinationlabel">
           <x>157</x>
           <y>274</y>
          </hint>
         </hints>
        </connection>
      ...
      

      Does anyone know the purpose of these hints? They seem to be a kind of coordinates. But what are they doing in signal slot connections?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @tkansgar
      I never do connections in Designer. But when you do it draws or shows the sender and receiver on the design canvas somehow, or maybe when you click to show the connections? I suspect you then see those two strings on the canvas near where the sender/receiver are?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tkansgar
        wrote on last edited by tkansgar
        #3

        No, I cannot see anything in the Designer canvas, which could be related to the connections. When I display the preview in Designer and click on the buttons in the button box (which is the signal sender), then simply the preview is closed.

        Any other ideas?

        JonBJ B 2 Replies Last reply
        0
        • T tkansgar

          No, I cannot see anything in the Designer canvas, which could be related to the connections. When I display the preview in Designer and click on the buttons in the button box (which is the signal sender), then simply the preview is closed.

          Any other ideas?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @tkansgar
          Try looking in manual? I'm pretty sure there is a visual thing, you need to be viewing signals/slots somewhere in the UI. You can see the XML is a <connection>, you can see what it is connecting, and you can see the <hints> element is inside it.

          1 Reply Last reply
          0
          • T tkansgar

            No, I cannot see anything in the Designer canvas, which could be related to the connections. When I display the preview in Designer and click on the buttons in the button box (which is the signal sender), then simply the preview is closed.

            Any other ideas?

            B Offline
            B Offline
            Bonnie
            wrote on last edited by
            #5

            @tkansgar @JonB is right.
            You can see that by clicking "Edit Signals/Slots" in the top toolbar of designer, or pressing F4.

            1 Reply Last reply
            2
            • T Offline
              T Offline
              tkansgar
              wrote on last edited by
              #6

              Ah, thanks @Bonnie! That tool I didn't know yet. Thanks to @JonB too!

              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