Results 1 to 3 of 3

Thread: scrollbar to QTabWidget

  1. #1
    Join Date
    Oct 2009
    Posts
    35
    Thanks
    12
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: scrollbar to QTabWidget

    1. Nice try, but you still did not use CODE tags...
    2. If you want to add ScrollArea to tab widget you have to... add QScrollArea to tab widget. In your code you have added PLCconfig to the tab widget, not scroll area. Then you have created some layout and added scroll area which doesn't make much sense as this layout is not used in any widget. And you even don't need this layout at all.

    All you need is to create scroll area (QScrollArea) add your widget (PLCconfig) to it and then insert scroll area to tab widget.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  3. #3
    Join Date
    Oct 2009
    Posts
    35
    Thanks
    12
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11

    Thumbs up Re: scrollbar to QTabWidget

    Quote Originally Posted by faldżip View Post
    1. Nice try, but you still did not use CODE tags...
    2. If you want to add ScrollArea to tab widget you have to... add QScrollArea to tab widget. In your code you have added PLCconfig to the tab widget, not scroll area. Then you have created some layout and added scroll area which doesn't make much sense as this layout is not used in any widget. And you even don't need this layout at all.

    All you need is to create scroll area (QScrollArea) add your widget (PLCconfig) to it and then insert scroll area to tab widget.

    Hi,

    Thanks i got my requirement....

Similar Threads

  1. Using Scrollbar on mainwindow
    By Amit_3117 in forum Qt Programming
    Replies: 4
    Last Post: 30th October 2010, 05:09
  2. Using Scrollbar mainwindow
    By Amit_3117 in forum Qt Programming
    Replies: 1
    Last Post: 18th October 2009, 16:57
  3. What do I need to create this scrollbar?
    By technoViking in forum Qt Programming
    Replies: 2
    Last Post: 15th October 2009, 15:28
  4. Scrollbar
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 31st October 2007, 07:33
  5. Scrollbar in QTreeWidget
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 23rd August 2007, 09:48

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.