Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSplitter position range
Qt 6.12 LTS is out! See what's new in the release blog

QSplitter position range

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 568 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.
  • ivanicyI Offline
    ivanicyI Offline
    ivanicy
    wrote on last edited by ivanicy
    #1

    Hello!

    I am using a QSplitter and I want to detect when it is in a specific position.

    I have connected this signal:

    QSplitter::splitterMoved(int pos, int index)
    

    And I need to know if there is a function that returns the 'pos' parameter range. I want to do something when 'pos' has the maximum value.

    Thank you very much!

    PD: It is a vertical splitter.

    ivanicyI 1 Reply Last reply
    0
    • ivanicyI ivanicy

      Hello!

      I am using a QSplitter and I want to detect when it is in a specific position.

      I have connected this signal:

      QSplitter::splitterMoved(int pos, int index)
      

      And I need to know if there is a function that returns the 'pos' parameter range. I want to do something when 'pos' has the maximum value.

      Thank you very much!

      PD: It is a vertical splitter.

      ivanicyI Offline
      ivanicyI Offline
      ivanicy
      wrote on last edited by
      #2

      @ivanicy

      I solved this:

      int iMax = 0, iMin = 0;
      splitterVertical->getRange(1, &iMin, &iMax);
      qDebug() << "--------------------------";
      qDebug() << "iMax: " << iMax;
      qDebug() << "iMin: " << iMin;
      qDebug() << "--------------------------";
      
      1 Reply Last reply
      2

      • Login

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