Results 1 to 2 of 2
Thread: TS3 GUI - add a button
-
20-07-2010, 16:48 #1
-= TeamSpeak User =-
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 25
TS3 GUI - add a button
hi guys.
i'm playing around with the plugin sdk.
i thought that it would be finde, if i could add a button in the tool bar.
i can access the ts3 window very easy using qt library but the window's children dont hava all names.
do i have to try out how i can access the tool bar and add a button or is there an easier way supported by the interface between my dll and teamspeak?
yours tomix
-
20-07-2010, 21:49 #2
-= TeamSpeak User =-
- Join Date
- Jan 2010
- Location
- Europe
- Posts
- 12
You can do it like this
Try "Toolbar" or a dynamic_cast in a QToolBar and check for not NULL pointer and you should get your toolbar.foreach (QWidget* pWidget, QApplication::allWidgets())
{
const char* className = pWidget->metaObject()->className();
if (strcmp(className, "MainWindow") == 0)
{
break;
}
}
Got this tip from somewhere in this forum, dont remember who it was though.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Error installing TS3 on CentOS Server
By umarsa in forum Server SupportReplies: 2Last Post: 22-07-2010, 07:59 -
lost file transfer connection
By xEvAngelx in forum Linux / FreeBSDReplies: 12Last Post: 24-06-2010, 18:30 -
server down and can help him no longer start
By bohdalb in forum Linux / FreeBSDReplies: 11Last Post: 18-01-2010, 16:05 -
Virtual server manager critical error?
By AndresCL in forum Linux / FreeBSDReplies: 28Last Post: 03-01-2010, 14:15


Reply With Quote