Results 1 to 2 of 2

Thread: Using qt (designer) and visual studio add in

  1. #1
    Join Date
    Feb 2012
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Using qt (designer) and visual studio add in

    Hi there,

    I installed the visual studio add in (for 2010). And I am creating a template just fine.

    However I'm wondering "what now"? I can click on the UI resource, and then open the designer, add a push button (just to try). However how am I going to access this button from within the rest of my program?

    How do I create "events" for items? - Is there a tutorial showing this?

  2. #2
    Join Date
    Jan 2012
    Location
    Argentina
    Posts
    167
    Thanks
    33
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Using qt (designer) and visual studio add in

    All the things you create with the designer are incluided in the ui variable of your Widget/MainWindow/Dialog or whatever you have created. You can access a label for example by typing something like:
    Qt Code:
    1. this->ui->label->text ()
    To copy to clipboard, switch view to plain text mode 

    At the designer you can right click an object, click go to slot.. and there you can have the events. Otherwise you will have to create them manually by: connect (...);

    I recommend you to watch the tutorials of this guy: http://www.youtube.com/playlist?list...3&feature=plcp

    he`s pretty neat

Similar Threads

  1. Qt Designer Visual Studio Plugin: Qt Designer doesn’t work
    By worstnbro in forum Qt Tools
    Replies: 3
    Last Post: 4th April 2012, 13:36
  2. Replies: 1
    Last Post: 19th January 2011, 23:01
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  4. Replies: 5
    Last Post: 10th November 2009, 15:46
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40

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.