Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QTableWidget's arrows disappearing
Forum Updated to NodeBB v4.3 + New Features

QTableWidget's arrows disappearing

Scheduled Pinned Locked Moved Mobile and Embedded
arrowqtablewidget
6 Posts 2 Posters 2.0k Views 2 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.
  • F Offline
    F Offline
    Francisco Neto
    wrote on last edited by
    #1

    Hello everyone,
    I am developing a mobile app and at some point I need to adjust my QTableWidget's size of any screen ... But in trying to do so, the arrows on the scrollbar disappear, someone could help me find a solution?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should share the code you are using that has this effect as well as the version of Qt you are using and the OS where it happens

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        You should share the code you are using that has this effect as well as the version of Qt you are using and the OS where it happens

        F Offline
        F Offline
        Francisco Neto
        wrote on last edited by
        #3

        @SGaist Hello,

        I'm using the resize event to my table fits the screen, but this happens before the event is called, so I'm thinking there's a problem with the component.
        The problem occurs on the Android versions 4.2.2, 5.0.2 and 5.1. Not tested yet in another versions.
        Here's a screenshot: http://imgur.com/GP9bHqA.

        void ffrmrelrecdup00::resizeEvent(QResizeEvent *event)
        {
        Q_UNUSED(event);
        frame_with_table->setGeometry(my_central_widget->geometry());
        frame_with_table->setGeometry(my_central_widget->geometry());
        }

        1 Reply Last reply
        0
        • F Offline
          F Offline
          Francisco Neto
          wrote on last edited by
          #4

          I'm using Qt Creator 3.4.2 on Qt 5.5.0...

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Francisco Neto
            wrote on last edited by
            #5

            One new question, i want use a option from the design in my cpp code. How can i do that? i want change the layout stretch from a widget. Thanks

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6
              1. Why the calls to setGeometry ?

              2. setStretchFactor is probably what you are looking for

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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