Results 1 to 4 of 4

Thread: Icon to Action issue in Ubuntu environments

  1. #1
    Join Date
    Jul 2012
    Posts
    5
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Exclamation Icon to Action issue in Ubuntu environments

    Hello all,
    My system is Ubuntu 12.10 64-bit machine with LXDE, XFCE, Gnome2 and Cinnamon desktop environments.

    I have a basic application with toolbar and right-click context menu. Actions are set from the UI in Action Editor. Those actions are used for toolbar and also in right-click context menu. What I want is some icons on those Actions. I have used QStyle StandardPixmaps
    Qt Code:
    1. action->setIcon(style->standardIcon(QStyle::SP_FileDialogInfoView))
    To copy to clipboard, switch view to plain text mode 
    and also used setIcon() method for my icons.

    The problem I have is when I implement and check in LXDE environment as well as on Windows 7 machine, that icon is displayed both in the toolbar and the right-click context menu. However, the same code in Gnome/XFCE environment, that icon is invisible in the context menu. It displays correctly in the toolbar.

    Is this a problem with the OS or Qt? Help needed seriously.

    Regards,
    blueshift

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Icon to Action issue in Ubuntu environments

    Have you checked if you are using different styles?

    Cheers,
    _

  3. #3
    Join Date
    Jul 2012
    Posts
    5
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Icon to Action issue in Ubuntu environments

    I checked with my own icons(png files) without using the QStyle icons; still the same problem persists.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Icon to Action issue in Ubuntu environments

    Sorry, I didn't mean trying icons from a different style, I meant checking if you are using the same widget style.
    For example run the application with Windows style in all environments.

    Cheers,
    _

Similar Threads

  1. Display issue on Ubuntu
    By Caius Aérobus in forum Installation and Deployment
    Replies: 0
    Last Post: 28th January 2013, 12:56
  2. Toolbar action icons disappear under Ubuntu 12.04
    By gib in forum Qt Programming
    Replies: 2
    Last Post: 10th September 2012, 08:45
  3. Display action as menu item without icon?
    By bmueller63 in forum Qt Programming
    Replies: 0
    Last Post: 21st October 2010, 20:51
  4. drop-down action icon list ?
    By divide in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2010, 08:57
  5. Checkable Action Icon
    By zgulser in forum Qt Tools
    Replies: 8
    Last Post: 15th January 2009, 13:13

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.