Results 1 to 15 of 15

Thread: undefined reference to MainWindow::server

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2014
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: undefined reference to MainWindow::server

    Dear wysota, I understand your viewpoint, but do you have some suggestion for make class serversocket viewed in any class and form of project? I prefere declare serversocket like a public in mainwindows ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: undefined reference to MainWindow::server

    Quote Originally Posted by rz View Post
    but do you have some suggestion for make class serversocket viewed in any class and form of project?
    I have a suggestion to not try and make the serversocket instance visible in any class of the project. This breaks at least one of the fundamental object oriented programming rules.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2014
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: undefined reference to MainWindow::server

    and if I have , any forms and just one connection! how can I do IT ? i need any forms see this connection!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: undefined reference to MainWindow::server

    Why do you "need" all forms to see this connection?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2014
    Posts
    12
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    1

    Default Re: undefined reference to MainWindow::server

    beacause I wanna see log of comunication in one form, when I close form I need set a flag do disable Log,
    in other form I wanna test comunication, and due any more reasons from project

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: undefined reference to MainWindow::server

    So pass a pointer to the socket manager to each form when you create them.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. The following user says thank you to wysota for this useful post:

    rz (30th March 2014)

Similar Threads

  1. undefined reference
    By deepakswaroop in forum Newbie
    Replies: 1
    Last Post: 2nd March 2011, 07:46
  2. undefined reference
    By jayreddy in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2009, 14:45
  3. Undefined Reference To...
    By ManuMies in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 13:14
  4. Undefined reference
    By Salazaar in forum Newbie
    Replies: 12
    Last Post: 23rd May 2007, 11:21
  5. Replies: 5
    Last Post: 15th February 2006, 00:43

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
  •  
Qt is a trademark of The Qt Company.