Results 1 to 5 of 5

Thread: trouble with signals and slots

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Posts
    87
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy trouble with signals and slots

    hey there, i have created a push button inside a tab called demandsTab() and i have connected the button to a method. the method and the connection is shown below:

    QPushButton *shortestPathButton = new QPushButton(tr("Shortest Path"));
    connect(shortestPathButton, SIGNAL(clicked()), this, SLOT(PermissionsTab:utputTable()));

    the slot function that i created is shown below:

    void PermissionsTab:utputTable()
    {

    int result = 5;
    display->setText(QString::number(result));
    }

    i basically just want the display to output the number 5 in the permissions tab when i press the button from the demands tab, but it isnt working....any idea's??? Jag

  2. The following user says thank you to therealjag for this useful post:


Similar Threads

  1. Signals and Slots Problem
    By GenericProdigy in forum Qt Programming
    Replies: 4
    Last Post: 2nd February 2009, 09:06
  2. Signals and Slots
    By 83.manish in forum Qt Programming
    Replies: 3
    Last Post: 30th June 2008, 10:31
  3. Problem with SpinBox signals and slots
    By ramstormrage in forum Newbie
    Replies: 4
    Last Post: 2nd May 2008, 01:45
  4. signals and slots in plugins
    By anderl in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 13:57
  5. Signals and Slots in dll
    By ankurjain in forum Qt Programming
    Replies: 8
    Last Post: 29th March 2006, 08:12

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.