<html><head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>On my phone.<br>The first 'this' is wrong. That needs to be the address of the specific qdatetomeedit in the UI.<br>My mistake<br><br>/D<br><br><div class="gmail_quote">On January 18, 2020 9:32:43 PM PST, Willem Ferguson <willemferguson@zoology.up.ac.za> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

    <div class="moz-cite-prefix">On 2020/01/18 21:32, Dirk Hohndel
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:137BA54D-4CE7-486B-A01B-72B977C0D2B5@hohndel.org">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hi Willem,<br class="">
      <div><br class="">
        <blockquote type="cite" class="">
          <div class="">On Jan 18, 2020, at 3:48 AM, Willem Ferguson
            <<a href="mailto:willemferguson@zoology.up.ac.za" class="" moz-do-not-send="true">willemferguson@zoology.up.ac.za</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <meta http-equiv="content-type" content="text/html;
              charset=windows-1252" class="">
            My formulation, reflecting my strong deficiencies in Qt
            coding but following the above, for the new connection is:</div>
        </blockquote>
        <blockquote type="cite" class="">
          <div class="">
            <div class="">
              <p class="">   <tt class=""> connect(this,
                  ui.timeDiffEdit->timeChanged(ui.timeDiffEdit->time()),</tt><tt class=""> this, this->timeDiffEditChanged());</tt></p>
              The second parameter needs to be a pointer, for which I
              used <tt class="">ui</tt><tt class="">.timeDiffEdit.</tt>
              The <tt class="">timeChanged()</tt> signal needs a <tt class="">QTime</tt> value, so I provided that with <tt class="">ui.timeDeffEdit->time(),</tt> the actual
              amount of time by which the <tt class="">timeDiffEdit</tt>
              has been changed.<br class="">
              <p class="">The last parameter also needs an address,
                provided by <tt class="">this-></tt><tt class="">timeDiffEditChanged()</tt>
                is the response to the signal from<tt class=""> </tt><tt class="">timeDiffEdit->timeChanged().</tt> It is a
                void function and the source of build problems. The
                compiler generates an error:</p>
              <p class=""><tt class="">/home/willem/src/subsurface/desktop-widgets/importgps.cpp:30:104:
                  error: invalid use of void expression</tt><tt class=""><br class="">
                </tt> <tt class=""> connect(this,
                  ui.timeDiffEdit->timeChanged(ui.timeDiffEdit->time()),
                  this, this->timeDiffEditChanged());</tt><tt class=""><br class="">
                </tt><tt class="">                                                                                                       
                  ^</tt><tt class=""><br class="">
                </tt></p>
              <p class="">Obviously, accessing the pointer <tt class="">this->timeDiffEditChanged()</tt>
                should not return a void value. I have no idea of how to
                respond to this error. Any suggestions are very welcome.</p>
            </div>
          </div>
        </blockquote>
        <br class="">
      </div>
      <div><br class="">
      </div>
      <div>How about  </div>
      <div><tt class=""><br class="">
        </tt></div>
      <div><tt class="">connect(this, &QTimeEdit::timeChanged,</tt><tt class=""> this, &ImportGPS::timeDiffEditChanged);</tt></div>
      <br class="">
      <div class="">That seems like it would follow the syntax suggested
        above, right?</div>
      <div class=""><br class="">
      </div>
      <div class="">/D</div>
    </blockquote>
    <p>Thank you very much for your time.<br>
    </p>
    <p>For Dirk's suggestion I get:<tt><br>
      </tt></p>
    <p><tt>/home/willem/src/subsurface/desktop-widgets/importgps.cpp: In
        constructor ‘ImportGPS::ImportGPS(QWidget*, QString,
        Ui::LocationInformation*)’:</tt><tt><br>
      </tt><tt>/home/willem/src/subsurface/desktop-widgets/importgps.cpp:30:78:
        error: no matching function for call to
        ‘ImportGPS::connect(ImportGPS*, void (QDateTimeEdit::*)(const
        QTime&), ImportGPS*, void (ImportGPS::*)())’</tt><tt><br>
      </tt><tt>  connect(this, &QTimeEdit::timeChanged, this,
        &ImportGPS::timeDiffEditChanged);</tt><tt><br>
      </tt><tt>                                                                             
        ^</tt><tt><br>
      </tt></p>
    <p>I suspect this means that there is a problem in the types of
      parameters in the call to connect() ??</p>
    <p>For Bill's formulation there is an apparent problem with the
      signal part of the call to connect():<br>
    </p>
    <p><tt>/home/willem/src/subsurface/desktop-widgets/importgps.cpp:31:88:
        error: invalid use of non-static member function ‘void
        QDateTimeEdit::timeChanged(const QTime&)’</tt><tt><br>
      </tt><tt>  connect(ui.timeDiffEdit,
        ui.timeDiffEdit->timeChanged, this,
        this->timeDiffEditChanged)</tt><tt><br>
      </tt><tt>                                                                                       
        ^</tt><tt><br>
      </tt>I just do not know how to proceed.</p>
    <p>Kind regards,</p>
    <p>willem</p>
    <p><br>
    </p>
  


<br>
<div style="font-family:Arial,Helvetica,sans-serif"><span style="font-size:10.0pt;line-height:105%;font-family:"Segoe UI",sans-serif">This message and attachments are subject to a disclaimer.<br>
Please refer to <a href="http://upnet.up.ac.za/services/it/documentation/docs/004167.pdf" target="_blank">http://upnet.up.ac.za/<wbr>services/it/documentation/<wbr>docs/004167.pdf</a> </span><span style="font-size:10pt;line-height:105%;font-family:Tahoma,sans-serif">for
full details.</span></div></blockquote></div><br>-- <br>From my phone</body></html>