Results 1 to 3 of 3

Thread: Different behaviour of QApplication!!

  1. #1
    Join Date
    May 2008
    Posts
    12
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Different behaviour of QApplication!!

    Hi all,

    QApplication behaves differently on Mac and Windows. Say for example,

    Qt Code:
    1. #include <QApplication>
    2.  
    3. int main(int argc, char *argv[])
    4. {
    5. QApplication myapp(argc,argv);
    6. return myapp.exec();
    7.  
    8. }
    To copy to clipboard, switch view to plain text mode 

    This program runs on windows till you kill it from task manager. Where as on Macintosh it
    just exits. What do we have to do to get same behaviour as windows on Macintosh?

    Thanks,
    Raajesh
    Last edited by jpn; 30th June 2008 at 15:08. Reason: missing [code] tags

  2. #2
    Join Date
    May 2008
    Posts
    12
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Different behaviour of QApplication!!

    can some body guide on this ?
    Raajesh

  3. #3
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Different behaviour of QApplication!!

    Probably because windows and mac treat differently window-less applications...
    I expect if you create GUI or use QCoreApplication instead (in case your app does not make use of the QtGui module) your app will behave the same on all platforms.
    Current Qt projects : QCodeEdit, RotiDeCode

Similar Threads

  1. Disable default tab behaviour for a QGraphicsItem
    By nmather in forum Qt Programming
    Replies: 3
    Last Post: 13th December 2017, 11:30
  2. QApplication instance
    By nile.one in forum Qt Programming
    Replies: 9
    Last Post: 5th October 2007, 13:06
  3. QAbstractItemView selection behaviour issue
    By Caius Aérobus in forum Qt Programming
    Replies: 4
    Last Post: 1st May 2007, 17:33
  4. Replies: 2
    Last Post: 16th March 2007, 10:04
  5. [Qt 4.1] Strange behaviour with QTableView
    By fane in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 07:17

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.