Results 1 to 4 of 4

Thread: signals/slots methods not being automatically being generated in c++/header files

  1. #1
    Join Date
    Nov 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4

    Default signals/slots methods not being automatically being generated in c++/header files

    I've compiled Qt into the visual studio 2008 environment and am building apps. However, when I create a connection for a pushbutton on a dialog form, or any form for that matter, in Qt designer, there is no "Go To Slots" option on the right mouse click menu or elsewhere. Furthermore, when I add a signal/slot, it "takes" in the form designer, but doesn't propogate to the c++/.h files to which they belong. As a result, I have to hand code them. This is true for any widget I want to configure for slots/signals.

    I wanted to know whether this is how it is in visual studio, or whether there was something to correct to make workflow more efficient. The standalone Qt IDE did update the c++ and .h files.

    Thank you,

    T1001

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: signals/slots methods not being automatically being generated in c++/header file

    The "standalone Qt IDE", meaning the Qt Creator does it the other way round - the functionality is implemented in Creator and not its Designer plugin. With Visual Studio this is not the case - Visual Studio knows nothing of signals, slots or Qt forms. You can use the VS Qt integration plugin which adds partial support for stuff you mention to Visual Studio. What you currently experience is the default and expected behaviour of Qt Designer.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    T1001 (6th December 2010)

  4. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: signals/slots methods not being automatically being generated in c++/header file


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

    T1001 (6th December 2010)

  6. #4
    Join Date
    Nov 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4

    Default Re: signals/slots methods not being automatically being generated in c++/header file

    Thank you...

Similar Threads

  1. custom slots / generated ui
    By mboeni in forum Newbie
    Replies: 19
    Last Post: 20th October 2010, 14:21
  2. Replies: 1
    Last Post: 15th September 2010, 22:26
  3. Replies: 4
    Last Post: 18th April 2010, 00:37
  4. Form generated header files
    By Rockem in forum Qt Programming
    Replies: 3
    Last Post: 20th August 2009, 12:55
  5. Replies: 0
    Last Post: 1st August 2009, 08:05

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.