Results 1 to 12 of 12

Thread: strange connect

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default strange connect

    I've problem: this connect get me a console error like as cannot connect check box to null::set(bool); but the SLOT starts; it works!Why?

    Qt Code:
    1. FancyPopup::FancyPopup(myMainForm* parent, const char* name ):
    2. QLabel( parent, name, WType_Popup ), _myw(parent){
    3. connect (checkBox, SIGNAL(toggled(bool)), _myw, SLOT(set(bool)));
    To copy to clipboard, switch view to plain text mode 

    and why this connect get me a run time error:
    Qt Code:
    1. connect (dial, SIGNAL(valueChanged(int)), _myw, SLOT(setValue(int)));
    To copy to clipboard, switch view to plain text mode 
    but this works:
    Qt Code:
    1. connect (dial, SIGNAL(dialMoved(int)), _myw, SLOT(setValue(int)));
    To copy to clipboard, switch view to plain text mode 
    Last edited by mickey; 18th June 2006 at 14:15.
    Regards

Similar Threads

  1. many connect
    By mickey in forum Qt Programming
    Replies: 3
    Last Post: 29th May 2006, 12:55
  2. connect on a popup
    By mickey in forum Qt Programming
    Replies: 2
    Last Post: 12th April 2006, 16:37
  3. connect to sql server
    By raphaelf in forum Qt Programming
    Replies: 15
    Last Post: 27th February 2006, 18:06
  4. [Qt 4.1] Strange behaviour with QTableView
    By fane in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2006, 06:17

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.