Results 1 to 3 of 3

Thread: How to make tab widget such as in eg. Konqueror?

  1. #1
    Join Date
    Jan 2011
    Location
    Poland
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to make tab widget such as in eg. Konqueror?

    Hi. I'm new in QT4. Can somebody tell me, how to make simple tab widget such as in eg. Konqueror, Arora, Firefox? Please help me

    ps. I'm using QtCreator 2.0.1 and QT4 on Linux 32bit.

    thanks in advance
    Adam

  2. #2
    Join Date
    Nov 2010
    Posts
    97
    Thanks
    6
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to make tab widget such as in eg. Konqueror?

    Quote Originally Posted by adam.ros View Post
    Hi. I'm new in QT4. Can somebody tell me, how to make simple tab widget such as in eg. Konqueror, Arora, Firefox? Please help me

    ps. I'm using QtCreator 2.0.1 and QT4 on Linux 32bit.

    thanks in advance
    Adam
    Is there some reason that QTabWidget doesn't suffice?
    This rude guy who doesn't want you to answer his questions.

    Note: An "expert" here is just someone that's posted a lot.

    "The fact of where you do the encapsulation is meaningless." - Qt Certified Developer and forum moderator

  3. The following user says thank you to nroberts for this useful post:

    adam.ros (3rd January 2011)

  4. #3
    Join Date
    Jan 2011
    Location
    Poland
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to make tab widget such as in eg. Konqueror?

    I've inserted QWebView as widget in addTab():
    Qt Code:
    1. tabWidget = new QTabWidget();
    2. tabWidget->setEnabled(true);
    3. tabWidget->setVisible(true);
    4.  
    5. webView = new QWebView();
    6. webView->setEnabled(true);
    7.  
    8. setCentralWidget(tabWidget);
    9.  
    10. tabWidget->addTab(webView, "New");
    To copy to clipboard, switch view to plain text mode 

    When I started application, the webView widget was grey or invisible, why? Is this OK?
    But if I load web page:
    Qt Code:
    1. webView->load(QUrl("http://www.google.com/"));
    To copy to clipboard, switch view to plain text mode 
    webView widget is visible, and i can see this website.

    Anyway, thank you nroberts for help

Similar Threads

  1. How to make widget grow outside of its parent widget
    By shakeandbake in forum Qt Programming
    Replies: 2
    Last Post: 9th January 2010, 08:52
  2. Is it possible get Konqueror window title through dbus?
    By jiveaxe in forum Qt Programming
    Replies: 0
    Last Post: 25th October 2008, 15:39
  3. Run database application from Konqueror
    By jiveaxe in forum Newbie
    Replies: 3
    Last Post: 17th October 2007, 17:54
  4. Help! can't configure konqueror
    By liuxianyu in forum Installation and Deployment
    Replies: 5
    Last Post: 17th May 2007, 09:53

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
  •  
Qt is a trademark of The Qt Company.