Results 1 to 20 of 71

Thread: Application crashes at launch-time

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Application crashes at launch-time

    Yes, I'm using assistant. I would check it in docs, but I just written that I don't know what's the problem about

  2. #2
    Join Date
    May 2007
    Posts
    315
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Application crashes at launch-time

    I made this changes you post, but when i launch application, only dialog window appear. I mean, no gui elements are displayed, only empty window. is that a 'typo'?

  3. #3
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Application crashes at launch-time

    I mean, no gui elements are displayed, only empty window. is that a 'typo'?
    Yes, but this time its yours:
    Qt Code:
    1. int main(int argc, char *argv[])
    2.  
    3. {
    4. QApplication app(argc, argv);
    5. QApplication::setStyle ( new QPlastiqueStyle() );
    6. //QDialog *window = new QDialog;
    7. Dialog *window = new Dialog;
    8. window->show();
    9. return app.exec();
    10. }
    To copy to clipboard, switch view to plain text mode 
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

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

    Default Re: Application crashes at launch-time

    Salazaar, please read and at least try to understand the code you write. I think you should be able to distinguish between "QDialog" and "Dialog".

Similar Threads

  1. Replies: 5
    Last Post: 27th May 2006, 13:44

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.