Results 1 to 2 of 2

Thread: Signal currentChanged() is not emitted on QTabWidget?

  1. #1
    Join Date
    Feb 2007
    Posts
    61
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Signal currentChanged() is not emitted on QTabWidget?

    Hi

    I had to rewrite this thread some because I found out more about the problem and it was a quite different problem then I though.

    When I create the first tab in a QTabWidget the new tab will ofcourse get focus, but the currentChanged(int) signal is not emitted although the current HAS changed. Any thoughts on this?
    Last edited by invictus; 27th April 2008 at 23:54.

  2. #2
    Join Date
    Oct 2007
    Posts
    78
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Signal currentChanged() is not emitted on QTabWidget?

    QTabWidget::currentIndex() is -1 with no tabs and is set to 0 with the first tab.

    My guess without looking at the code is Trolltech overlooked that situation or has some rational as to why the first addition does not trigger the signal.

    Bob

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.