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. [beginner] Scrollbars in QTableWidget not clickable by mouse

[beginner] Scrollbars in QTableWidget not clickable by mouse

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 797 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    grutsch
    wrote on last edited by
    #1

    I have written the following simple code:
    @#include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <QTableWidget>

    MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
    {
    QTableWidget *peter = new QTableWidget(this);
    peter->resize(200,200);
    peter->setRowCount(10);
    peter->setColumnCount(5);
    peter->move(50,50);
    ui->setupUi(this);
    }

    MainWindow::~MainWindow()
    {
    delete ui;
    }
    @

    The QTableWidget shows fine. I can navigate the table using the arrow keys on the keyboard. It shows scrollbars (vertical and horizontical)

    but

    the scrollbar-up/down buttons and the bar itself are not clickable/dragable with the mouse. Any idea how to fix this?

    edit: included mainwindow.h and ui_mainwindow.h in header

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      it's definitely not caused by the code you posted. So there must be somewhere else the reason for this issue.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      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