Results 1 to 2 of 2

Thread: Q3TabDialog problem

  1. #1
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Question Q3TabDialog problem

    After porting my program from QT3 to QT4, I found that the tabs are all disappeared!!!
    The tabs can only be shown when there's no parent widget parsed to the Q3TabDialog.

    I have a class inherited the Q3Dialog class with constructor like this
    Qt Code:
    1. TESTTabDialog::TESTTabDialog( TESTListViewItem* lvi, QWidget *parent, const char *name, bool modal, Qt::WFlags f)
    2. :Q3TabDialog(parent, name, modal, f)
    3. {
    4. ............
    5. }
    To copy to clipboard, switch view to plain text mode 

    When I parse a NULL to the "parent" parameter, the tabs can be shown, however the Tab Dialog is not at center place and cannot get active control.
    When I parse the actual parent to the parent parameter, the tabs all disappeared and I cannot select other tab page, only the first tab page can be shown.

    Can anyone tell me what's wrong with it and how can I solve it?
    Thanks a lot!

  2. #2
    Join Date
    Jun 2008
    Posts
    64
    Thanks
    7
    Qt products
    Qt3 Qt4

    Default Re: Q3TabDialog problem

    i found that in qt4
    tabdialog should be drawn manually by adding tabs to qtabwidget
    is that true?

Similar Threads

  1. Very strange socket programming problem
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2008, 12:05
  2. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 14:38
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.