Results 1 to 2 of 2

Thread: Qt QTableWidget - Cell Widget static position on MacOsX

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2013
    Location
    India
    Posts
    153
    Thanks
    27
    Thanked 18 Times in 18 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Exclamation Qt QTableWidget - Cell Widget static position on MacOsX

    Hello Everyone,

    I have got stucked in a problem which works fine on my windows OS and not on MAC OSX.

    I have added a QPushButton in my table widget but when the list of table widget increases then on scrolling added push button not move.

    Qt Code:
    1. QPushButton *deleteButton = new QPushButton(Delete);
    2. deleteButton->setFixedSize(32, 32);
    3. deleteButton->setStyleSheet("QPushButton { border-image: url(:/Resource/Images/DashBoard/checkout.png); }");
    4. ui->tableWidget_fileList->setCellWidget(row, 4, deleteButton);
    To copy to clipboard, switch view to plain text mode 

    it seems that the position of the buttons are static.
    Unable to get out of this problem, anyone have adea about that?
    Last edited by karankumar1609; 25th March 2013 at 13:21.

Similar Threads

  1. Replies: 3
    Last Post: 9th November 2012, 18:55
  2. Replies: 2
    Last Post: 18th July 2011, 00:25
  3. Many cell widget in QTableWidget
    By Benarez in forum Qt Programming
    Replies: 3
    Last Post: 21st January 2010, 07:02
  4. Replies: 1
    Last Post: 7th December 2009, 18:56
  5. Center a widget in a cell on a QTableWidget
    By roleroz in forum Qt Programming
    Replies: 16
    Last Post: 5th March 2009, 14:47

Tags for this Thread

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.