Results 1 to 2 of 2

Thread: QT Designer and autorecognizing slots

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QT Designer and autorecognizing slots

    In my typical case I create a form (_frm) and then manually add it to the dialog class (MyDialog) as:
    class Mydialog : QDialog
    {
    ...
    private ui::frm _frm;
    }

    Naturally, when I edit ui::frm in QT designer I only see default slots. So, if I add a slot in the code like this:
    ...
    public slots:
    void DoSmth();
    }

    I then have to add "DoSmth" as custom slot in QT designer. Only then this slot becomes available for assignment.

    Question: Is it possible to configure the enviroment in such a way that it will always read custom slot definitions from MyDialog so they will be always available as custom slots in QT Designer?

  2. #2
    Join Date
    Feb 2008
    Posts
    157
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT Designer and autorecognizing slots

    As far as I know such functionality was intentionally never added to the Designer.
    Qt Software wants developers to write connects in code and not do this graphically.

    Since I hardly connect signals of widgets direct to slots of other widgets I almost never use the signal slot functionality in designer.

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.