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. Qt Splitter, default stretch

Qt Splitter, default stretch

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 229 Views
  • 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.
  • J Offline
    J Offline
    jacubus
    wrote on last edited by jacubus
    #1

    Update. Did it in way-around. Just set up minimum width and its working, it's not exactly what i wanted but still better than nothing.

    I have a little problem with qt Splitter, i made two qt grids separated by splitter but one grid have only openGlWidget inside and there is a problem with default stretch of this widget. I tried to set it in MainWindow constructor but didn't help.

        ui->setupUi(this);
        
            ui->splitterOpenGL_Right->setStretchFactor(0, 5);
        
            ui->splitterOpenGL_Right->setStretchFactor(1, 1);
        
            this->QMainWindow::update();`
    

    3376f8dd-e51a-4f78-8712-6724d73525bf-image.png

    It looks like that, but i want to get at least 80% of area covered by openglwidget
    cb6cb668-0899-4b62-a307-ec12db058c57-image.png

    1 Reply Last reply
    0

    • Login

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