Results 1 to 5 of 5

Thread: Create tab?

  1. #1
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Create tab?

    I want create a form. In menu example menu file . I want to create some option : new windows ,new tab ,open .... I query how to create a option new tab in Qt designer ? Help me .Thanks!

  2. #2
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

  3. #3
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Create tab?

    Thank for help me.But my problem is not here. I have done all step in this page and now I have must done something continuous to create a function open a tab ( When I click here it will open a new tab like that Firefox press ctr+ T it will open a new tab)

  4. #4
    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: Create tab?

    Quote Originally Posted by songthanjp View Post
    When I click here it will open a new tab like that Firefox press ctr+ T it will open a new tab
    You can't create such functionality in Qt Designer which is just a layout designer. You write functionality in code; first you react to the shortcut and then you call QTabWidget::addTab().
    J-P Nurmi

  5. The following user says thank you to jpn for this useful post:

    songthanjp (4th March 2008)

  6. #5
    Join Date
    Mar 2008
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Create tab?

    i have another question. I want a sign "x" in my tab ,click here will close tab

Similar Threads

  1. Create Thought Balloons
    By Angelo Moriconi in forum Qt Programming
    Replies: 4
    Last Post: 11th January 2008, 09:15
  2. Create QTextStream
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 17th June 2007, 20:25
  3. how to create resource fork & data fork
    By jyoti in forum General Discussion
    Replies: 4
    Last Post: 28th November 2006, 17:20
  4. Replies: 1
    Last Post: 24th October 2006, 16:40
  5. How to create an Insert/Submit button for a form.
    By fnmblot in forum Qt Programming
    Replies: 5
    Last Post: 4th August 2006, 16:18

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.