Results 1 to 5 of 5

Thread: Use connect() to a Qt terminal application?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Use connect() to a Qt terminal application?

    I believe 'connect' is part of QObject, but I doubt it'll work without a QApplication.

  2. #2
    Join Date
    Dec 2010
    Location
    Russia
    Posts
    83
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 12 Times in 11 Posts

    Default Re: Use connect() to a Qt terminal application?

    Hey,

    Right,first off you have to initiate a QApplication object (for event dispatching,application initialization,etc. look at the Assistant for full info).

    Then,it's not quite clear what you're trying to get connected.I mean if the code's snippet you provided is the main() program function then...what is "this" then? THere are two "types" of timers available:

    1.Event-driven timer (look at the int QObject::startTimer(int) )

    2.QTimer signals

    There's a great explanation of both in Assistant,so check it out...

    If you're using connect outside the class (let's say in the main(int argc,char* argv[]) function),you should use the static version of it:

    Qobject::connect(...);

  3. The following user says thank you to AlexSudnik for this useful post:

    hakermania (27th December 2010)

  4. #3
    Join Date
    Jul 2010
    Location
    /home/hakermania/
    Posts
    233
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    129
    Thanked 3 Times in 3 Posts

    Default Re: Use connect() to a Qt terminal application?

    Thx for the replies, I really appreciate it!
    When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.

Similar Threads

  1. Terminal into Qt application
    By paF4uko in forum Qt Programming
    Replies: 4
    Last Post: 27th February 2009, 11:22
  2. help about terminal window
    By andyyeng in forum Qt Programming
    Replies: 0
    Last Post: 29th October 2008, 15:22
  3. Looking for widget to run terminal app
    By marcell in forum Qt Programming
    Replies: 0
    Last Post: 16th May 2008, 16:24
  4. qtopia terminal application
    By Savita in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 29th February 2008, 07:24
  5. My application can't connect to database when deploy it???
    By gtthang in forum Installation and Deployment
    Replies: 1
    Last Post: 15th February 2006, 11:01

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.