Results 1 to 2 of 2

Thread: Serious installation problem

  1. #1
    Join Date
    Feb 2006
    Posts
    209
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Serious installation problem

    THe following little Qt program crashes on my gentoo qt-4.3.1 box. I really need some help finding out what casues it.

    Any ideas anyone?
    ------------------------
    test_project.pro:

    Qt Code:
    1. TEMPLATE = app
    2. LANGUAGE = C++
    3.  
    4. OBJECTS_DIR = ./build
    5. MOC_DIR = ./build
    6. DESTDIR = ./
    7.  
    8. CONFIG += qt warn_on release thread
    9.  
    10. SOURCES += main.cpp\
    To copy to clipboard, switch view to plain text mode 

    ---------------------------------
    main.cpp:

    Qt Code:
    1. #include <QApplication>
    2. #include <QFileDialog>
    3. #include <QMessageBox>
    4.  
    5. int main(int argc, char *argv[])
    6. {
    7. QApplication app(argc, argv);
    8.  
    9. QString fname = QFileDialog::getOpenFileName(0, QString("Open file"), "");
    10. QMessageBox::information(0,"test","You selected file: "+fname);
    11. return 0;
    12. }
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: Serious installation problem

    Did you try debugging? Does it go through the QApplication constructor?

Similar Threads

  1. Qt4: Problem after installation
    By naccchii in forum Installation and Deployment
    Replies: 2
    Last Post: 5th July 2007, 12:15
  2. painter problem in new Qt-4.2.3 installation
    By impeteperry in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd May 2007, 06:34
  3. Replies: 16
    Last Post: 7th March 2006, 16:57

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.