Results 1 to 12 of 12

Thread: problems

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    41
    Qt products
    Qt4
    Platforms
    Windows

    Default problems

    I´m doing 2 buttons one disabled the other one. To do that I have done the following that:

    button.h

    Qt Code:
    1. #ifndef BUTTONS_H
    2. #define BUTTONS_H
    3.  
    4. #include <QWidget>
    5. #include <QBuffer>
    6.  
    7.  
    8. class QPushButton;
    9.  
    10. class buttons: public QWidget
    11. {
    12. Q_OBJECT
    13. public:
    14. buttons(QWidget *parent = 0);
    15.  
    16. private slots:
    17. void blocked();
    18.  
    19. };
    20.  
    21. #endif
    To copy to clipboard, switch view to plain text mode 
    buttons.cpp

    Qt Code:
    1. QPushButton *deshabilitar = new QPushButton(tr("deshabilitar"), this);
    2. connect(deshabilitar, SIGNAL(clicked()),this, SLOT(blocked()));
    3.  
    4. QPushButton *Button7= new QPushButton(tr("Button7"), this);
    5.  
    6. void buttons:: blocked( )
    7. {
    8. Button7.setDisabled(true);
    9. }
    To copy to clipboard, switch view to plain text mode 



    Why am I having problems?
    Last edited by jpn; 16th July 2009 at 19:35. Reason: missing [code] tags

Similar Threads

  1. Mac OSX OpenGL problems
    By tksharpless in forum Qt Programming
    Replies: 0
    Last Post: 23rd March 2009, 17:27
  2. flicker and wierd resize problems ...
    By momesana in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2008, 18:00
  3. Replies: 2
    Last Post: 8th March 2007, 22:22
  4. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39

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.