Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. setvisible
    Log in to post

    • SOLVED How to scrollTo(index) if view was hidden
      General and Desktop • qlistview setvisible scrollto • • Rory_1  

      10
      0
      Votes
      10
      Posts
      2620
      Views

      I've found a satisfactory solution. I found out the horizontalScrollBar->maximum changes with each successive paint event. I can calculate what the maximum should be and then determine which is the last paint event.
    • UNSOLVED how to hide the horizontalLayout?
      General and Desktop • layout hide setvisible • • ForestPoem  

      2
      0
      Votes
      2
      Posts
      8558
      Views

      A layout can not be hidden since they are not widgets and does not have a setVisible() function. You have to create a widget that you can hide, that contains the layout and the other widgets that should be hidden, then you hide the widget instead of the layout. QWidget* myWidget = new QWidget(); QHBoxLayout * layout = new QHBoxLayout(myWidget); layout->addWidget(new QLabel("Label")); myWidget->setVisible(false);
    • Hidden QML application does not redraw when unhidden
      QML and Qt Quick • setvisible qmlviewer showevent • • foxysounds  

      1
      0
      Votes
      1
      Posts
      380
      Views

      No one has replied