Results 1 to 3 of 3

Thread: Adding a toolbar to a TableWidget

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Adding a toolbar to a TableWidget

    Quote Originally Posted by Walter View Post
    do I have to make a QMainWindow containing a QTableWidget and a QToolBar or is there another way?
    Yes, this is the way to go. Still if any Qt widget can be made a top level widget (aka. window), only QMainWindow provides functionality such as menus, toolbars and dock widgets. You might want to set the QTableWidget as a central widget of the QMainWindow, see QMainWindow::setCentralWidget() for more details.
    J-P Nurmi

  2. #2
    Join Date
    Jun 2007
    Location
    Austria (Europe)
    Posts
    31
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Adding a toolbar to a TableWidget

    Thank you very much!

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.