Results 1 to 11 of 11

Thread: Are the QTabWidget and QTableView drawn based on the top-level window?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2009
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Are the QTabWidget and QTableView drawn based on the top-level window?

    Here is my question:
    1. A transparent window(with Qt::Window Flag) has 2 sub-child-widget layouted by QVBoxLayout, and the buttom one has another sub-child-widget QTabWidget which then I put some QTableViews on. ----the structre
    2. Back to the top-level window, if I invoke blew:
    toplevelWindow->setAutoFillBackground(false); it'll show the window like:
    2.jpg(the first image) well transparency, but the Table View was not correct
    3. toplevelWindow->setAutoFillBackground(true); it'll show the windowas:
    1.jpg(the second image) the Background was painted black by system
    I just want the top-level window to be transparent but not child widget...
    PlateForm: Windows +qt 4.5.2
    Attached Images Attached Images
    • File Type: jpg 2.jpg (20.8 KB, 25 views)
    • File Type: jpg 1.jpg (21.0 KB, 23 views)
    Last edited by dotboy; 5th July 2009 at 05:44.

Similar Threads

  1. Replies: 2
    Last Post: 7th June 2009, 10:47

Tags for this Thread

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.