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. Best way to implement mainwindow with Tabs, Toolbar and main content area
Forum Updated to NodeBB v4.3 + New Features

Best way to implement mainwindow with Tabs, Toolbar and main content area

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 4.5k 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.
  • L Offline
    L Offline
    luafox
    wrote on last edited by
    #1

    I would like to create a program with a main window containing a number of tabs. Each tab should by itself contain a toolbar at the top, a status bar at the bottom and the main content area in the center. I'm looking for something similar to this screenshot from the Crome browser:

    !http://s7.postimage.org/668e2zi2j/Tab_Example.png(Chrome example)!

    What I did is to create a QMainWindow and add a QTabWidget as central widget which is already working ok. I'm new to Qt so I'm wondering whether this is the best way to go and how to proceed. Which widget would be best to use as tab? It should probably support a Toolbar, Statusbar and main area.

    To help me you do not need to post code, but it would be very nice if you would say something like "Start with QMainWindow then add the QTabWidget. Each Tab should contain a QWidget with..."

    I would also like to see the tabs in a very similar style to the ones shown in the screenshot. The area just left and right of the tabs is transparent in Windows 7 - is this possible with Qt? Can you give me a hint on how to do this?

    Thank you very much!

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      MainWindow > QTabWidget > QToolbar + QWidget > QWebView.

      Or you can use QTabBar and QStackedWidget)).

      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