Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Mac only - Vertical Scroll problem with QTableWidget
Forum Updated to NodeBB v4.3 + New Features

Mac only - Vertical Scroll problem with QTableWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 968 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vsthakur1
    wrote on 8 Mar 2013, 02:22 last edited by
    #1

    This problem is observed in Mac only. In Winows 7 and XP, everything works fine.

    In QTable Widget, i am adding some items in certain columns using "setCellWidget()". Whereas, to add items in other columns of the same row I am using "setItem()".
    When I tried to use vertical scroll bar, the items added by using "setItem()" scroll properly. But the items added by "setCellWidget()" do not scroll at all . They are frozen.
    What I tried -
    [1] I tried setting the stylesheet -
    QString scrollStyleSheet = "QTableWidget {}"; // tried few variations too , but this works the best
    ui->deviceGridTable->setStyleSheet(scrollStyleSheet );

    It works fine, so long as I do not scroll, when items are getting added. Before adding new items or after adding new items, if I scroll, it works fine. However, if I scroll, while new iterms are being added one by one , it shows the same old ugly characterstics which I just described.

    [2] I tried setting "VerticalScrollMode" to "ScrollPerPixel". It does not work at all.

    What else can I try to fix the problem of vertical scrolling while items are detting added ? (Only for those items which are added using "setCellWidget()". The problem is only on Mac OSX 10.8.1. I am using Qt 4.8.3

    1 Reply Last reply
    0

    1/1

    8 Mar 2013, 02:22

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved