Results 1 to 3 of 3

Thread: Tabwidget not refreshing properly

  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Tabwidget not refreshing properly

    Hi All,

    I have created 2 dialogs separately and placing these dialogs on diffrent tabs of QTabWidget placed on another (3rd) dialog at runtime.

    Here the problem is the controls of both the dialogs are shown on the same tab initially.
    If I select the second tab, then it is showing correct controls on this tab. If I go to previous tab, then also it is showing the controls correctly. But initially is showing all the controls of both dialogs.

    Can anybody help me out to solve this problem.

    Thanks,
    Segu

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tabwidget not refreshing properly

    I have created 2 dialogs separately and placing these dialogs on diffrent tabs of QTabWidget placed on another (3rd) dialog at runtime.
    That's not correct. You QWidgets instead and add these to the tab widget. Dialogs are not meant to be used in this manner.

  3. The following user says thank you to marcel for this useful post:

    seguprasad (24th September 2007)

  4. #3
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tabwidget not refreshing properly

    Thank you very much marcel.

    We changed the QDialogs into QWidgets. Now it is working fine.

    -Segu

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.