Forum
Sign Up
× DataGrid for Qt.C++

Scrollbars visibility

1 month 1 day ago #1 by JUAN CARLOS FONT
Hello,

Using the QtitanDataGrid v. 8.0.0, I am trying to set the scrollbars always visible both horizontally and vertically, this way:

view->options().setScrollBars(Qtitan::ScrollBoth);

but this seems to have no effect, the scrollbars are still only visible when needed. Am I doing something wrong here? I have also tried building one of the example projects (large dataset), with the same result.

Thank you,

Please Log in or Create an account to join the conversation.

More
4 weeks 2 days ago #2 by JUAN CARLOS FONT
OK, noticed that the Grid itself inherits QAbstractScrollArea, and therefore the scrollbars can be configured like this:
grid->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);

Please Log in or Create an account to join the conversation.

More
4 weeks 2 days ago #3 by Developer Machines
Absolutely. Version 8 now inherits from QAbstractScrollArea. This was not the case in version 7, was inherited from QWidget. Unfortunately, during the migration we did not implement this method from the old API. In the near update (8.1) you will be able to use the old method too.

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.127 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )