Results 1 to 1 of 1

Thread: QtStyles and Application Crashes

  1. #1
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QtStyles and Application Crashes

    Hi, I have written progam using "Plastique" style from beginning and had no problem. Then I have build the same working program not using and set styled but just system default, and i get many application crashed from different places in the program. Then I re-enabled the "Plastique" style and tada, no crashes. I have already spent many hours trying to figure out why it does not work it with system default style.

    with code below, I do not get any crashes

    Qt Code:
    1. QApplication a(argc, argv);
    2. QApplication::setStyle("Plastique");
    To copy to clipboard, switch view to plain text mode 



    but if I comment out setStyle, I get many program crashed from different areas.
    Qt Code:
    1. QApplication a(argc, argv);
    2. //QApplication::setStyle("Plastique");
    To copy to clipboard, switch view to plain text mode 


    Can anyone give any insight of what might be going wrong.

    I use Qt Creator 1.1.1 Based on Qt 4.5.1
    my program code can be found on http://sourceforge.net/projects/softprojector/
    Last edited by vladozar; 19th September 2009 at 16:04.

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.