m_ptrayIcon = new QSystemTrayIcon(this); m_ptrayIcon->setContextMenu(m_ptrayIconMenu); m_ptrayIcon->setToolTip("System Tray"); slotChangeIcon(); m_ptrayIcon->show();
QRect QEcho::getTrayIconGeometry(){ return(m_ptrayIcon->geometry());}
QEcho w; QRect rect; rect = w.getTrayIconGeometry(); rect.setSize(QSize(100,100)); w.setGeometry(rect);
rect = w.getTrayIconGeometry(); rect.setSize(QSize(100,100)); w.setGeometry(rect);