Results 1 to 10 of 10

Thread: Custom TabWidget button

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Custom TabWidget button

    Then why don't you use QMainWindow instead of QWidget as your base class?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Jul 2012
    Posts
    123
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Custom TabWidget button

    I found how to solve it
    Qt Code:
    1. QVBoxLayout* vbox = new QVBoxLayout(this);
    2. vbox->addWidget(toolBar);
    3. vbox->setContentsMargins(0,0,0,0);
    4. vbox->setSpacing(0);
    5. setLayout(vbox);
    To copy to clipboard, switch view to plain text mode 
    this is what i need

Similar Threads

  1. Custom button
    By Erik-Moscow in forum Qt Programming
    Replies: 4
    Last Post: 1st February 2010, 16:58
  2. Custom Button
    By wirasto in forum Newbie
    Replies: 1
    Last Post: 14th November 2009, 10:59
  3. Custom widget: a button within a button
    By Gnurou in forum Qt Programming
    Replies: 7
    Last Post: 18th June 2009, 09:03
  4. close button for tabwidget
    By sepehr in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2009, 13:57
  5. How to create a custom Button?
    By Mister_Crac in forum Qt Programming
    Replies: 18
    Last Post: 22nd October 2006, 23:59

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.