Results 1 to 5 of 5

Thread: setting main window icon on linux platform

  1. #1
    Join Date
    Apr 2006
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default setting main window icon on linux platform

    I have used
    QApplication::setWindowIcon(QIcon(":/pss_icons/datapath.png"));
    I have also used the same icon for one of the toolbar buttons.
    I have compiled it using .qrc.
    The toolbar icon is getting displayed but the application icon is coming as black rectangle.

    But the icon is getting displyed on windows. Pls suggest.
    Pls suggest.

    Thanks
    Last edited by jyoti kumar; 20th June 2007 at 11:42.

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: setting main window icon on linux platform

    Which Desktop are you using (Kde, Gnome, Enlightenment, ...) ?

    I guess this problem has nothing to do with your code...
    A small compilable sample, maybe ? :-)

    Guilugi.

  3. #3
    Join Date
    Apr 2006
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setting main window icon on linux platform

    Its icewm desktop. I tried with Gnome & KDE, its getting displayed on them.
    Can you pls suggest something for icewm?
    Thanks a lot.
    Last edited by jyoti kumar; 21st June 2007 at 05:10.

  4. #4
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: setting main window icon on linux platform

    Well, I'll have a look at IceWM forums, maybe it can be simply configured.

    IceWM is a powerful Window Manager, entirely configurable, and maybe this option is disabled in the default configuration : a single would solve it all

    I'll keep you in touch.

    Guilugi.

  5. #5
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: setting main window icon on linux platform

    You should check your icewm configuration file, and tune it a little.
    There's some information here :
    http://www.icewm.org/manual/icewm-8.html

    Guilugi.

Similar Threads

  1. move parent window to the front.
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2007, 08:41
  2. Setting the starting position of Main Window
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2006, 12:17
  3. Replies: 5
    Last Post: 4th August 2006, 23:44
  4. Problem in porting Main window on linux
    By jyoti kumar in forum Qt Tools
    Replies: 2
    Last Post: 2nd June 2006, 08:35
  5. cannot make a main window modal
    By Dark_Tower in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 10:21

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.