Results 1 to 6 of 6

Thread: Problems declaring global QIcons

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Catalonia
    Posts
    266
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    44
    Thanked 2 Times in 2 Posts

    Default Problems declaring global QIcons

    Hi all, my application crashes when I make the following declarations of icons in the global space:

    Qt Code:
    1. static const QIcon IconeInicialFotoPetita("../icone.bmp");
    2. static const QIcon IconeLlibreObert("../llibreobert.png");
    3. static const QIcon IconeLlibreTancat("../llibretancat.png");
    4. static const QIcon IconeCarpetaOberta("../carpetaoberta.png");
    5. static const QIcon IconeCarpetaTancada("../carpetatancada.png");
    To copy to clipboard, switch view to plain text mode 

    But it doesn't crash if I just declare them as null icons:

    Qt Code:
    1. static const QIcon IconeInicialFotoPetita;
    2. static const QIcon IconeLlibreObert;
    3. static const QIcon IconeLlibreTancat;
    4. static const QIcon IconeCarpetaOberta;
    5. static const QIcon IconeCarpetaTancada;
    To copy to clipboard, switch view to plain text mode 

    Anybody could explain me why?

    Thanks.
    Last edited by SkripT; 7th March 2006 at 13:39.

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.