Results 1 to 2 of 2

Thread: show messagebox

  1. #1
    Join Date
    Feb 2010
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60

    Default show messagebox

    HI,

    I have a tablewidget. In one of the rows i have a pushbutton. when i click on it i want a messagebox to get displayed.

    QPushButton* actionButton = new QPushButton(tr("Action"));
    filesTable->setCellWidget(i , 3, actionButton);

    connect(filesTable, SIGNAL(itemClicked(int,int)),
    this, SLOT(showPathOfItem(int,int)));

    But unable to launch the message box.
    Any problem in the above code.

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: show messagebox

    itemClicked has the following signature -
    void QTableWidget::itemClicked ( QTableWidgetItem * item )

Similar Threads

  1. MessageBox appearnig twice.
    By ronak.vashi in forum Newbie
    Replies: 7
    Last Post: 30th November 2010, 07:45
  2. set Bold to MessageBox particular Text
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 5th November 2009, 11:53
  3. MessageBox Validation
    By fortyhideout12 in forum Newbie
    Replies: 10
    Last Post: 2nd September 2009, 17:14
  4. Replies: 1
    Last Post: 21st April 2008, 22:43
  5. QSA 1.2.1 && MessageBox
    By xk in forum Newbie
    Replies: 0
    Last Post: 20th April 2006, 17:30

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.