Results 1 to 2 of 2

Thread: How to control icon size in tooltips

  1. #1
    Join Date
    Feb 2007
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default How to control icon size in tooltips

    Hello,

    i have created an action:
    Qt Code:
    1. itemsDeleteAct->setIcon(QIcon(":Delete_Items.png"));
    2. itemsDeleteAct->setText(tr("Delete items"));
    3. itemsDeleteAct->setShortcut(QString("Del"));
    4. itemsDeleteAct->setShortcutContext(Qt::WidgetShortcut);
    5. itemsDeleteAct->setStatusTip(tr("Delete selected items"));
    6. itemsDeleteAct->setToolTip(itemsDeleteAct->statusTip());
    To copy to clipboard, switch view to plain text mode 
    This action is added to a toolbar. If the mouse hovers above the toolbutton a tooltip is shown(tooltip.png)

    How can i control the size of the icon in this tooltip?

    I can resize Delete_Items.png, but i use this action at different places.
    Resizing the image would not work if i use a vector(.svg) graphic.

    Best regards

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    518
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to control icon size in tooltips

    edit: sorry, misread your question and posted nonsense

    Ginsengelf

Similar Threads

  1. Replies: 1
    Last Post: 5th July 2017, 13:05
  2. Control the position of the icon in a QLineEdit
    By PinTxO in forum Qt Programming
    Replies: 0
    Last Post: 7th September 2016, 10:06
  3. Replies: 2
    Last Post: 4th September 2016, 10:05
  4. Replies: 2
    Last Post: 26th October 2012, 16:26
  5. Size of an Icon
    By LordQt in forum Qt Programming
    Replies: 7
    Last Post: 26th August 2007, 21:36

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.