Results 1 to 10 of 10

Thread: How does the "PREVIEW" option in Qt Designer work?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Join Date
    Mar 2012
    Location
    India
    Posts
    102
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: How does the "PREVIEW" option in Qt Designer work?

    Thanks for your efforts but I think you are misled.

    Whether its 2006 or 2012, I believe writing code for a custom slots is not supported in Qt Designer. Well here are some latest posts which may not be objectionable:

    1) http://stackoverflow.com/questions/7...de-to-a-button
    2) http://stackoverflow.com/questions/4...qt-designer-go

    etcetera.

    QUiLoader may be working in the following manner:

    A) The Signal/ Slots connections made using the predefined signals and slots in the Designer are between the tags <signal></signal> and <slot></slot> within the <connection></connection> tag int he .ui file.
    B) Next while loading the .ui file first the QUiLoader will parse the tags and look for the code of the signals and slots (with name in between the tags) in the Qt Library. It will fetch the code from from there and display the UI.

    This way when the particular signal is emitted the code of the slot will be executed. So if I need to implement my custom signals and slots I have to write the corresponding class files (.cpp and .h) which will contain its code.
    Last edited by Charvi; 20th April 2012 at 06:58. Reason: spelling mistakes

Similar Threads

  1. Replies: 4
    Last Post: 20th September 2010, 10:42
  2. The "Range" option in QHttpRequestHeader does not work?
    By nhs_0702 in forum Qt Programming
    Replies: 1
    Last Post: 19th April 2010, 09:36
  3. Replies: 1
    Last Post: 5th January 2010, 13:34
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. "has a relation" to work with designer ?
    By thejester in forum Qt Tools
    Replies: 5
    Last Post: 4th December 2007, 15:45

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.