Results 1 to 4 of 4

Thread: How to Swap the tabs(similar to Google chrome)

  1. #1
    Join Date
    Jul 2011
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default How to Swap the tabs(similar to Google chrome)

    Hi,

    I have created a tab widgets with four tabs. How to swap those tabs? (for example swapping of two tabs in Google Chrome)

    Regards,
    Priya

  2. #2
    Join Date
    May 2011
    Posts
    9
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to Swap the tabs(similar to Google chrome)

    Qt Code:
    1. tabWidget->setMovable (true);
    To copy to clipboard, switch view to plain text mode 

    In the embedded designer in QtCreator, select the tab widget in the main window and look in the properties list for movable and tick it.

  3. #3
    Join Date
    Jul 2011
    Posts
    8
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to Swap the tabs(similar to Google chrome)

    Thanks a lot... It works... Can you give me an idea how to do tear off tabs in qt.... i.e. drag and drop the tab outside the widget to open as a new window....

  4. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to Swap the tabs(similar to Google chrome)

    Quote Originally Posted by GT Development View Post
    Thanks a lot... It works... Can you give me an idea how to do tear off tabs in qt.... i.e. drag and drop the tab outside the widget to open as a new window....
    there is no straightforward solution for this in Qt. You will have to play with system's api. google for it, may be somebody already did it (or take a look at chrome source)

Similar Threads

  1. Qtbrowserplugin fails in chrome
    By naren82 in forum Qt Programming
    Replies: 2
    Last Post: 21st January 2013, 21:05
  2. Tabs in titlebar (like Google Chrome)
    By akiross in forum Qt Programming
    Replies: 5
    Last Post: 28th January 2011, 13:06
  3. Problems implementing Google Chrome's search
    By seand in forum Qt Programming
    Replies: 1
    Last Post: 14th September 2008, 05:11

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.