QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 817|回复: 3

谁能告诉我怎样在系统托盘中加入图标呢??

[复制链接]
发表于 2003-12-27 17:03:05 | 显示全部楼层 |阅读模式
如题,谢谢!
发表于 2005-1-11 13:47:01 | 显示全部楼层
一年前的问题了,不知道解决了吗?
回复

使用道具 举报

 楼主| 发表于 2005-1-11 16:38:07 | 显示全部楼层
解决了
引用KSystemTray 类

Detailed Description

KDE System Tray Window class KDE System Tray Window class.

This class implements system tray windows.


A tray window is a small window (typically 24x24 pixel) that docks into the system tray in the desktop panel. It usually displays an icon or an animated icon there. The icon serves as representative for the application, similar to a taskbar button, but consumes less screen space.


When the user clicks with the left mouse button on the icon, the main application window is shown/raised and activated. With the right mouse button, she gets a popupmenu with application specific commands, including "Minimize/Restore" and "Quit".


Docking happens magically when calling show(). The window undocks with either hide() or when it is destroyed.


KSystemTray inherits methods such as setPixmap() and setMovie() to specify an icon or movie (animated icon) respectively. It is designed to be usable "as is", without the need to subclass it. In case you need to provide something special (such as an additional popupmenu on a click with the left mouse button), you can subclass anyway, of course.


Having an icon on the system tray is a useful technique for daemon-like applications that may run for some time without user interaction but have to be there immediately when the user needs them. Examples are kppp, kisdn, kscd, kmix or knotes. With kppp and kisdn, the docked icon even provides real-time information about the network status.
回复

使用道具 举报

发表于 2005-1-12 12:31:31 | 显示全部楼层
附件是cjacker以前做的拨号程序,用的就是这样,你可以看看他的源码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-6 19:29 , Processed in 0.042222 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表