Results 1 to 14 of 14

Thread: Delayed Rendering of QTabWidget Tabs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2006
    Location
    Madison, WI USA
    Posts
    153
    Thanks
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Delayed Rendering of QTabWidget Tabs

    Not so crazy, Marcel. The guy that maintains those libraries has given me a version with increased thread priority. While it makes the response better, it doesn't entirely solve the problem.

  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: Delayed Rendering of QTabWidget Tabs

    Qt Code:
    1. m_tabACN_Gen = new ACNGenTab( this );
    2. m_tabWidget->addTab( m_tabACN_Gen, tr(GENERAL_TAB.toAscii().data()) );
    3.  
    4. m_tabACN_Ports = new ACNPortsTab( this );
    5. m_tabWidget->addTab( m_tabACN_Ports, tr(PORTS_TAB.toAscii().data()) );
    6.  
    7. m_tabACN_AIP = new ACNAIPTab( m_pNode, m_pMainWin, this );
    8. m_tabWidget->addTab( m_tabACN_AIP, tr("AIP") );
    To copy to clipboard, switch view to plain text mode 

    I just noticed this. You create the m_TabACN* forms with this as parent ( meaning the dialog ). But the parent should be m_tabWidget, otherwise the dialog wil lsend all kinds of events to the forms. You should really modify this.

    You can also try updatesEnabled( false ) on the forms after you create them . This wil make them not receive resize or paint events. You enable the updates just before making them visible.

  3. #3
    Join Date
    Aug 2006
    Location
    Madison, WI USA
    Posts
    153
    Thanks
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Delayed Rendering of QTabWidget Tabs

    It appears that the boosted priority background thread and Marcel's parenting suggestion (along with taking numerous closer looks at my code) has made things acceptable. Some of the drawing is a little sluggish but the devices don't regularly go offline now.

    wysota and marcel, thank's so much for your time!

Similar Threads

  1. QTabWidget with same tabs
    By Djony in forum Qt Programming
    Replies: 20
    Last Post: 24th December 2011, 12:20
  2. QTabWidget tab visibility
    By dcss-design in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 23:24
  3. Switching off all tabs in QTabWidget
    By Gopala Krishna in forum Qt Programming
    Replies: 7
    Last Post: 30th August 2006, 17:10
  4. Removing Tabs
    By NewGuy in forum Qt Programming
    Replies: 6
    Last Post: 22nd July 2006, 22:46

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
  •  
Qt is a trademark of The Qt Company.