Results 1 to 2 of 2

Thread: What's This crashes on Mac OS X?

  1. #1
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default What's This crashes on Mac OS X?

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

    Steps to reproduce
    1. Compile and run the application shown above
    2. Press Shift+F1


    Expected behavior
    • yellow box with "what?" is displayed


    Observed behavior
    • Windows 7 x64: as expected
    • Ubuntu 10.04 x86: as expected (might have white font)
    • Mac OS 10.6.2: yellow box with "what" displays for a split second, then app crashes
      • crashes for both Qt 4.7.4 and 4.8.3




    Am I missing something here?

    Alternatively, short of recompiling from scratch with QT_NO_WHATSTHIS, is there any way to disable What's This for my entire application?

    Thank you!!
    Attached Files Attached Files

  2. #2
    Join Date
    Oct 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: What's This crashes on Mac OS X?

    Quote Originally Posted by ypeels View Post
    Alternatively, short of recompiling from scratch with QT_NO_WHATSTHIS, is there any way to disable What's This for my entire application?
    It's ugly even as kludges go, but installing an event filter for Shift+F1 on the QApplication object seems to gets the job done...there's gotta be a better way, right?

    http://doc.qt.digia.com/qt/eventsand...#event-filters

Similar Threads

  1. QT application crashes.
    By coding_neo in forum Qt Programming
    Replies: 3
    Last Post: 24th October 2011, 13:30
  2. Program crashes
    By Fallen_ in forum Qt Programming
    Replies: 49
    Last Post: 20th September 2010, 01:41
  3. Crashes when activated
    By bnilsson in forum Newbie
    Replies: 3
    Last Post: 29th August 2009, 15:50
  4. app crashes again
    By sophister in forum Qt Programming
    Replies: 7
    Last Post: 15th June 2009, 10:01
  5. Replies: 5
    Last Post: 5th March 2009, 01:38

Tags for this Thread

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.