[SOLVED] How to Add Standard Icons to Qt Menus

Right now the "quit" button in a Qt programme I'm working on looks like this:
The code I'm using is,
exitAct = new QAction(tr("&Quit"), this);
exitAct->setShortcut(tr("Ctrl+Q", "Quit"));
I'd like it to have the standard quit icon I see in all my other programmes:
Does anyone know how I can do this?
Last edited by tony5429 (2009-06-20 20:34:24)

8    ** Commercial Usage ...
13    **
14    ** GNU Lesser General Public License Usage
15    ** Alternatively, this file may be used under the terms of the GNU Lesser
16    ** General Public License version 2.1 as published by the Free Software
17    ** Foundation and appearing in the file LICENSE.LGPL included in the
18    ** packaging of this file.  ...
22    ** In addition, as a special exception, Nokia gives you certain
23    ** additional rights. These rights are described in the Nokia Qt LGPL
24    ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
25    ** package.
26    **
27    ** GNU General Public License Usage
28    ** Alternatively, this file may be used under the terms of the GNU
29    ** General Public License version 3.0 as published by the Free Software
30    ** Foundation and appearing in the file LICENSE.GPL included in the
31    ** packaging of this file.  Please review the following information to
32    ** ensure the GNU General Public License version 3.0 requirements will be
33    ** met: http://www.gnu.org/copyleft/gpl.html.
The code can be used under any of the Qt licenses, including GPL.  Just follow GPL 3.0 rules and you will be fine.

Similar Messages

  • How to add standard text in smartforms?

    Hi friends,
    How to add standard text in smartforms ?
    points rewarded soon
    Regards
    RH

    Creating the Standard Text:
    Go to SO10
    1. Enter Text Name.  For example, ZABC
    2. Text ID ST
    3. Language EN
    Click on Create.
    And enter the Required Information and save.
    To include a Standard text in SmartForm.
    Follow the steps below:
    1. Create a text node in the window.
    2. Under general attributes select "Include text" as Type.
    3. Specify the fields under Text.
    Text Name ZABC
    Text Object TEXT
    Text ID ST
    Language EN.
    Hope it helps.
    Regards.

  • How to add an icon to a node in network graphics?

    Hi all,
      Do you know how to add an icon (any SAP' icon) to a node in network graphics?
    Just like a tree can have a leaf with icon (for example, a person icon, a plant icon), can a node in network graphics have an icon also?  and how to implement in network graphics?
      I already studied t-code gral: NETZOCX1
    NETZOCX2
    NETZ_BO1
    NETZ_BO2
    NETZ_BO3
    But no actual output.
    It seems using node type in network graphics can help to determine different icons, could you give some suggestion or examples?
    Thanks a lot!!

    Hi,
      Thanks for you link about SAP Graphics Framework. It seems not very useful in our case.
      Since we are using Control Framework now, there is Tree and Networks in it. Can a node in a network have an icon (such as person icon, plant icon)? I know a leaf in a tree in Control Framework can have an icon.
      Anybody has comments or suggestion?
      Thanks!

  • How to add an Icon to a parent menu item in Command Center?

    Hi guys,
    does anybody know how to add an icon to a parent maenu item in Command Center? BTW, I'm using SBO 6.5
    Cheers,
    Oki

    The SDK doesn't provide any features for adding icons to the command center in SBO6.5.
    Version 2004 has a new image property for menu items that can be used.
    John.

  • How to add standard text in PO and how it is maintained ?

    How to add standard text (paragraph) in PO and how it is maintained ?

    Hi
    Please go through this document.which has a step by step
    Working with Frequently Used Texts
    Use
    You can copy texts from various sources to create PO texts:
    Standard texts
    Certain standard texts are supplied with the system and can be assigned to a purchasing document in Customizing.
    The content of some standard texts is predefined by your system administrator.
    You can also create standard texts yourself and copy them into purchasing documents.
    Master records
    Database fields
    Activities
    Creating Standard Texts
    You can create your own standard texts via Tools ® SAPscript ® Standard text.
    Inserting Standard Texts
    You can insert your standard text on the long text screen via Insert ® Text ® Standard.
    For more information, refer to the Basis documentation under BC Word Processing with the SAPscript Editor:  Including Texts.
    You can display the print preview via Text ® Print ® Print preview.
    Inserting Texts from the Master Record
    There are three ways of linking texts from a master record with a purchasing document. The relevant settings are made for each text type in Customizing for Purchasing. The indicator in the status column shows the nature of the linkage.
    Option                                              Indicator in status column
    The text is copied:               
    It is then independent of the text                 None
    in the master record. Changes to
    the text in the material master record
    have no influence on the text in the document.
    The text is displayed only:
    It cannot be adopted.                                          N
    The text is offered for copying:
    It can be copied via Header or Item ® Texts ® Adopt text. (In requisitions: Goto ® Texts ® Adopt text.) Changes made in the master record will also be adopted in the document until such time as you copy the text.
    Inserting Texts from Database Fields
    You can include the content of a database field at any point in the text on the long text screen. A value specific to the relevant document is displayed in the printed document.
    Choose Insert ® Symbols ® Program symbols.
    Choose DDIC fields.
    Search for the relevant table/structure (in the case of PO items, this is EKPO) and then choose ENTER .
    Choose the relevant table field.
    Choose Text ® Print preview to see the print preview.
    Reward if useful
    Aasif

  • How to add an icon in the title bar,next to the maximize and minimize icons

    I need to add an icon ( help icon; ?) in the JInternalFrame� title bar. Anyone could help me????
    Thanks

    have you get the answer ?? on how you add an icon to the title bar?? ...
    if you do please inform me..
    thanks

  • How can add RINGTONE icon to library?help

    how can add RINGTONE icon to library?help

    To analyze anything in LabVIEW you have to be able to access the signal through some sort of DAQ board. Once you have the signal going to a board then you have to have the right driver (packaged code) to be able for LabVIEW to communicate with that device. There are a lot of supported drivers at ni.com/idnet or you can create your own. Check out this site for how LabVIEW interacts with Audio. This other site  has information on using your local sound card with your microphone or speaker input/output to interact with LabVIEW. Hopefully this will get you started in the right direction. Make sure and only add the answered tag to your post only if your question was truly answered and Kudos are always appreciated. Cheers!!
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager

  • How to add URL Icon for each responsibility

    Hi all,
    I have a requirement where i need to add URL Icon to my custom application, i,e when i click on responsibity it will open the application so to make user to know he is in this application we need to add ICON to URL. This is possible in normal HTML just we need to include these two lines in head tab.
    <link rel="icon" type="image/ico" href="favicon.ico"></link>
    <link rel="shortcut icon" href="favicon.ico"></link>
    How can we achieve the same in the OAF?
    Thanks
    Babu

    Hi Josephine
    Please proceed as below:
    1. SE51.
    2. Change the layout.
    3. Add 2 pushbuttons at your desired location.
    4. Double click on each button for Attributes.
    5. In the attributes, give the Name, Text.
    6. Select the Icon Name from the list: Eg: ICON_OKAY and ICON_CANCEL.
    7. Go back to layout.
    8. Save & Activate
    9. Now you can test the screen to check the icons displayed in the screen.
    Hope this helps.
    Kind Regards
    Eswar

  • How to add an icon in to web template of web application designer  3.x

    Hi Friends,
    I have to add a new icon in to exsisting web template.
    Please any body can help in this issue ?
    Thanks
    Pedamarla

    Hi Stefan,
    Thanks for your early response.
    As you suggested i have added the image to MIME Repository successfully.
    Now i have to add the new icon to exsisting template.
    Stefan my problem here is
    I have to add new icon but i donot need to change the icon.
    you are giving the procedure how to change the exsisting icon but my problem is i have add new icon with out replacing any one exsisting in the template.
    Thanks in Advance
    Pedamarla

  • How to add an icon for ok code at the bottom of the screen.

    hi,
    I have designed a screen with a table control.
    I want to have at the end of the screen a ok and a cancel button.
    For example in menu painter on top we have a icon for going back, exit etc.
    At the same way at the bottom of the screen i need to have a tick icon. How to add it at the end of the screen.

    Hi Josephine
    Please proceed as below:
    1. SE51.
    2. Change the layout.
    3. Add 2 pushbuttons at your desired location.
    4. Double click on each button for Attributes.
    5. In the attributes, give the Name, Text.
    6. Select the Icon Name from the list: Eg: ICON_OKAY and ICON_CANCEL.
    7. Go back to layout.
    8. Save & Activate
    9. Now you can test the screen to check the icons displayed in the screen.
    Hope this helps.
    Kind Regards
    Eswar

  • How to add an icon to the Windows 95 Taskbar

    Hi,
    Can I get your help?
    I want to create a form under the Win32 platform which can add an icon in the notification area of the taskbar, but I did not know how to?

    There is a product called Desktop Extension - Java System Tray for Windows. It is exactly what you want. Check it out at http://www.maxistech.com/desktopex/

  • Pls explain how to add standard text in sapscript & smartforms

    Dear friends,
    pls explain how to implement standard text into sap script and smartforms.
    in how many we can do.
    and what is diff between include text & text modules in smartforms.
    how we can translate into multiple languages.
    Regards
    Jagadeeshwar.B

    hi,
    for the include text goto tcode so10.
    for changing the smartform and scripts use there methods..
    1. goto se63>translation->abap objects->other long texts->FS Forms and Styles---> for scripts use Forms
                                           for smartforsm use SAPSmart form
                                           for styles use Styles
    2. goto se71->utilities->original language.---> source lang
    (for scripts)                                                     target lang
    to include the include text created in the tcode so10 in the smartforms go to general attributes of the text element--text type> include text...
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 22, 2008 11:56 AM

  • [SOLVED] How to add modules to build with the kernel?

    Hello i´m trying to learn how to build my own custom kernel and doing it the arch way https://wiki.archlinux.org/index.php/Ke … raditional. But unfortunately dm-crypt was not included in the kernel so it all failed.
    svart_alg% sudo mkinitcpio -k 3.15.6 -c /etc/mkinitcpio.conf -g /boot/initramfs-test.img
    ==> Starting build: 3.15.6
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [lvm2]
    ==> ERROR: module not found: ‘dm-snapshot’
    -> Running build hook: [encrypt]
    ==> ERROR: module not found: ‘dm-crypt’
    -> Running build hook: [block]
    -> Running build hook: [filesystems]
    -> Running build hook: [keyboard]
    -> Running build hook: [fsck]
    ==> WARNING: No modules were added to the image. This is probably not what you want.
    ==> Creating gzip initcpio image: /boot/initramfs-test.img
    ==> WARNING: errors were encountered during the build. The image may not be complete.
    I have never don any of this before and have no idea of how to add a missing module to the kernel i´m building. So i search on internet and had a very hard time finding a good guide for this but i fond one possible solution. https://www.kernel.org/doc/Documentatio … odules.txt
    svart_alg% make -C /home/nigro_alko/Kernel/linux-3.15.6 M=/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in
    make: Entering directory ‘/home/nigro_alko/Kernel/linux-3.15.6‘
    mkdir: cannot create directory ‘/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in’: Not a directory
    scripts/Makefile.build:44: /home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in/Makefile: Not a directory
    make[1]: *** No rule to make target ‘/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in/Makefile’. Stop.
    Makefile:1310: recipe for target ‘_module_/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in’ failed
    make: *** [_module_/home/nigro_alko/Kernel/cryptsetup-1.6.5/Makefile.in] Error 2
    make: Leaving directory ‘/home/nigro_alko/Kernel/linux-3.15.6‘
    So is there any one that have time to help a lost little newbie i would bee very happy  :-)
    Last edited by Moosey_Linux (2014-07-29 15:00:40)

    karol wrote:Why do you want a custom kernel in the first place?
    Moosey_Linux wrote:i´m trying to learn how to build my own custom kernel
    Reason enough IMO. But anyway... you refer to the Traditional build method in the wiki, but is it possible you didn't really read it? Or maybe you only skimmed it? Did you run make menuconfig? Did you try to build everything in instead of using modules? That mkinitcpio output suggests that you did.
    As suggested there for first-timers, it's a good idea to start with a kernel configuration that is known to work - the Arch config is the obvious choice, but there are other sources e.g. http://kernel-seeds.org/ .

  • [SOLVED]How to add multiple gateways in Arch

    Hi, can someone please advise how to add multiple gateway address for multiple interfaces.
    In my case I have two wired LAN cards. I use Arch network daemon to manage my NIC's.
    I know in Gentoo it could be done through : 'gateway_ethX=( "default gw xx.xx.xx.xx dev ethX" )'
    but doing so in arch wont connect to router/gateway.
    Also in rc.conf it says :
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    #   - prefix an entry in ROUTES with a ! to disable it
    How to declare each route, and then how to list it in ROUTES?
    I read the following thread:
    http://bbs.archlinux.org/viewtopic.php?id=52992, but after adding the suggested lines in rc.conf and restarting the network it fails and says hostname not found.
    Thanks.
    Last edited by kapz (2009-10-08 18:53:39)

    In that case, your routing table should look something like this:
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
    192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
    rc.conf:
    eth0="eth0 192.168.1.14 netmask 255.255.255.0 broadcast 192.168.1.255"
    eth1="eth1 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
    INTERFACES=(eth0 eth1)
    # You may need to add 'dev eth1' to the end of this after '.1.1'
    gateway="default gw 192.168.1.1"
    ROUTES=(gateway)
    Last edited by fukawi2 (2009-10-06 21:55:49)

  • How to add an icon to the dock in the macbookpro

    i am using macbook pro,  i accidentl removed the launchpad ison from the dock,  how to add it back to the dock

    Go to finder/applications
    select launchpad
    and drag it back to the dock

Maybe you are looking for

  • Baseline date not default in MIRO for Invoices posted against STO Pu.Order

    Hi All, Baseline date doesn´t default in MIRO for Invoices posted against an STO Purchase Order. We are trying to post an Invoice in MIRO with reference to a STO Purchase Order for planning delivery cost. Delivery cost in PO has not got the Vendor nu

  • How to set Lov item property (Action type,event,parameter etc) in PR when page load

    Hi gurus I am new to OAF, First I need to explain my scenerio. I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list). for this i extended the controler and apply the changes, but in this case wh

  • Flash doesn't work after I updated it

    I am using Firefox 34.0.5 and updated my flash player but after the update it stopped working. The videos doesn't show up. I tried disabling all add-ons and found out that Shockwave Flash 16.0 is causing the problem. What should I do to make it work

  • Error message in an odd location

    I have this code snippet: URL urlShoppingCartPage = new URL("http://www.example.com/cgi-bin/..."); URLConnection URLConn_ShoppingCartPage = new urlShoppingCartPage.openConnection(); // line 138 // more code... InputStream is_ShoppingCartPage = new UR

  • Is there any way download i-table in debug mode?

    Hi Experts. I'm curious if there any way download i-table to local computer in debug mode. could you let me know that method? currently using basis 640, bw3.5 version. Thank you. Lee.