Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Central QDockWidget as a replacement for a QTabWidget ?
Forum Updated to NodeBB v4.3 + New Features

Central QDockWidget as a replacement for a QTabWidget ?

Scheduled Pinned Locked Moved Brainstorm
3 Posts 2 Posters 2.6k 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.
  • T Offline
    T Offline
    Threadcore
    wrote on last edited by
    #1

    Hi

    I am a bit stuck with my project. I try to write a little editor. I have a program with an editor (central position) , an output console (bottom) and two explorer (left and right side).

    Until today, the console and the two object explorer were dock widget and the editor was a central QPlainTextEdit. But the deign is not that good (Many lines around the widgets etc, different layout under windows and kubuntu etc...)

    Here is a screen of the current GUI:

    Windows (Okay, only a few lines, clear layout, but this ugly double line -> 0 pixel margin): http://www.imagebanana.com/view/eenhnryg/screen.png
    Kubuntu (Too many lines...I should simplify the layout): http://www.imagebanana.com/view/d06i7py9/snapshot2.png

    I saw kdevelop under Kubuntu and they have this fancy file tab "array". I like this interface:

    http://www.imagebanana.com/view/wjnrgh74/snapshot1.png

    Please pay attention to the file tab array and the left dock widget (The distance between each dock widget is much closer than in my application. The height of the file explorer and the tab menu is the same - not in my application). Is there an easy way to simplify my layout (more like kdevelop) ? Can I create a central widget with a "normal" and clean file tab array like in kdevelop or can I disable the frame lines (See kubuntu picture)

    I know, I this is not a regular question, I need some input, a different point of view ;)

    Greets

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hipersayan_x
      wrote on last edited by
      #2

      That is because you moved the dock title to the left side. If you want to keep equal the height of QPlainTextEdit and the height of the widget internal to the dock, you can use stylesheets to change the marging and the padding of the widget, also change the dock frame style to remove the borders.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Threadcore
        wrote on last edited by
        #3

        Okay, thank you, that sounds like a good plan. I changed the border size, but there is still a pixel (maybe two) between the border of the QWidget and the QTabWidget

        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