Results 1 to 2 of 2

Thread: QT5 connect server.cpp and window.cpp

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2014
    Posts
    7
    Thanks
    2
    Qt products
    Qt5

    Default QT5 connect server.cpp and window.cpp

    Hello i am new to C++ and QT5.

    I have build a application for displaying data, which are received via a server.

    I would like to update the displayed data when the server reads a new file. I have successfully build a refresh via a button click and the connection to the client and the transmitting of the data is fully functional, but how can i connect the server (done()) with the window resetGrid()?
    I tried something like

    QObject::connect(server,SIGNAL(done()),window,SLOT (resetGrid()));

    but it does not work

    edit:
    silly me.... just had to use references
    -> QObject::connect(&server,SIGNAL(done()),&window,SL OT(resetGrid()));

    Problem solved, just had to waste 4 hours for this :/
    Last edited by nnead; 27th July 2014 at 02:26.

Similar Threads

  1. Replies: 15
    Last Post: 11th March 2014, 01:54
  2. Replies: 5
    Last Post: 27th January 2014, 22:22
  3. Connect to a web server
    By sliverTwist in forum Newbie
    Replies: 7
    Last Post: 25th February 2013, 08:19
  4. Connect To Sql Server With QT
    By METEOR7 in forum Qt Programming
    Replies: 6
    Last Post: 13th December 2011, 12:39
  5. connect to sql server
    By raphaelf in forum Qt Programming
    Replies: 15
    Last Post: 27th February 2006, 18:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.