Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QTabWidget inside of centralWidget
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] QTabWidget inside of centralWidget

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maximus
    wrote on last edited by
    #1

    Hi,

    I have a problem setting a QTabWidget as my centralWidget for my application.
    It is just a small apparence problem, you can see in the screenshot below, a small gray line still appear up north even when margin is set to 0 in centralWidget (QTabWidget should take all space) :
    https://www.dropbox.com/s/ultw4h8c0sw5yle/interface1.png

    Here is the structure of my widgets in QtCreator :
    https://www.dropbox.com/s/g74bvn6lwudqagv/structureWidget.png

    My question, is it possible to fix this?
    Maybe I could set directly QTabWidget as the Root of my project instead of MainWindow? I will not use status bar and menu so is that a good option?

    Thanks in advance :)


    Free Indoor Cycling Software - https://maximumtrainer.com

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alexisdm
      wrote on last edited by
      #2

      You should enable the "documentMode":http://qt-project.org/doc/qt-4.8/qtabwidget.html#documentMode-prop. It disables the frame around the internal widget.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maximus
        wrote on last edited by
        #3

        Setting document mode to true in QTabWidget fixed the issue
        Thank you very much!


        Free Indoor Cycling Software - https://maximumtrainer.com

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved