Results 1 to 11 of 11

Thread: Public routines

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Posts
    33
    Qt products
    Qt4

    Default Re: Public routines

    I resolved.

    it was necessary to create a istance of MainWindow in the Diagnostics.cpp (Mainwindow *Main).

    At this point I need to write Main->Read_Ambiente();

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: Public routines

    of course, it is necessary, hard to imagine how could you use it without having an instance

  3. #3
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Public routines

    In some cases you could use 'static' method to call it wthout instance of an object.

Similar Threads

  1. Public variables
    By eltecprogetti in forum Qt Programming
    Replies: 8
    Last Post: 6th April 2012, 12:58
  2. Replies: 1
    Last Post: 27th August 2009, 05:41
  3. Qt Public Repository Launched!
    By lpotter in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2009, 00:38
  4. checksum routines?
    By gfunk in forum Qt Programming
    Replies: 2
    Last Post: 20th September 2007, 00:26
  5. Qt and CGI routines
    By jcr in forum Qt Programming
    Replies: 6
    Last Post: 28th November 2006, 06:15

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.