Community Forums Today's Posts     Member List     Archive    
Results 1 to 2 of 2
  1. #1
    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

  2. #2
    Join Date
    Jan 2010
    Location
    Europe
    Posts
    12
    You can do it like this
    foreach (QWidget* pWidget, QApplication::allWidgets())
    {
    const char* className = pWidget->metaObject()->className();
    if (strcmp(className, "MainWindow") == 0)
    {

    break;
    }
    }
    Try "Toolbar" or a dynamic_cast in a QToolBar and check for not NULL pointer and you should get your toolbar.
    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

  1. Error installing TS3 on CentOS Server
    By umarsa in forum Server Support
    Replies: 2
    Last Post: 22-07-2010, 07:59
  2. lost file transfer connection
    By xEvAngelx in forum Linux / FreeBSD
    Replies: 12
    Last Post: 24-06-2010, 18:30
  3. server down and can help him no longer start
    By bohdalb in forum Linux / FreeBSD
    Replies: 11
    Last Post: 18-01-2010, 16:05
  4. Virtual server manager critical error?
    By AndresCL in forum Linux / FreeBSD
    Replies: 28
    Last Post: 03-01-2010, 14:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •