Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8229193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:43:01+00:00 2026-06-07T16:43:01+00:00

I have two QSliders placed in GridLayout like this: layout = new GridLayout(); layout->addWidget(slider_horizontal,

  • 0

I have two QSliders placed in GridLayout like this:

layout = new GridLayout();

layout->addWidget(slider_horizontal, 0, 1, 1, 2);
layout->addWidget(slider_vertical, 1, 0, 2, 1);

This forms a 2×2 matrix since they are both placed in a different row and column.
What i want is to remove the unused cell in the bottomright corner (position: 1,1).

The thing is that this cell is taking place in my QGraphicsView and making the area not selectable.

Later I make this:

sliderWidget = new QWidget(graphicsView);
sliderWidget = setLayout(layout); 

Where graphicsView is the QGraphicsView.

My first thought was that this wasn’t possible, and I had to work me around this problem.
But I want to check if this is possible with you.

I would also like to know if there is some other way to make the unused cell not taking up place in my graphics view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:43:02+00:00Added an answer on June 7, 2026 at 4:43 pm

    What about placing the whole Graphics View inside that bottom right cell? This sliders would be outside the graphics view but usually this shouldn’t be a problem.

    Not sure if you actually only want scrollbars for a view which displays a small part of a larger scene, in that case you could use these:

    QGraphicsView::setVerticalScrollBarPolicy(...)
    QGraphicsView::setHorizontalScrollBarPolicy(...)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two classes Order and Items I want a method like this class
I have two strings like this $text = 'Abcdef'; $text[7] = 'Ghijk'; When I
I have two tables and want to compare rows on sqlite like this table1
I have two forms and a button. Everything works fine in Firefox. I get
I have two tables I'd like to compare. They are in separate databases and
I have two date variable separately like following startDate is a Date instance with
Have two folders with approx. 150 java property files. In a shell script, how
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two tables images2 and image_data So the goal is to have 1
I have two classes (MVC view model) which inherits from one abstract base class.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.