Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. stackedwidget
    Log in to post
    • All categories
    • A

      Solved No member named 'stackedWidget' in Ui::MainWindow
      General and Desktop • stackedwidget qmake • • arjun98

      8
      0
      Votes
      8
      Posts
      1812
      Views

      A

      @Christian-Ehrlicher Thank you, I had a typo in the widget name in the ui file which I was able to find in the ui_mainwindow.h file.

    • T

      Unsolved Button not collinear with QGroupBox
      General and Desktop • stackedwidget qgroupbox qpushbutton sizepolicy • • TUStudi

      4
      0
      Votes
      4
      Posts
      335
      Views

      Pl45m4

      @TUStudi

      Try a cascading horizontal + vertical layout for your page. Could be an issue with the stretch of the last column, where your green button lives or the QGridLayout in general.

      Edit:
      Yeah, that's probably it.
      Gridlayouts can have "empty" cells... Your two groupBoxes with your options take two cells above the button, which takes one, but expands to full size. As soon as you hide the content (grpBox 2nd opt) of second column, the gridLayout only has three rows (grpBx radio, grpBx first, green btn), but the QGridLayout won't delete its second column, but will leave it just empty and this takes some (little) space. Probably exact that amount of space, the green button expands to the right (aligning to the outter border of your grid).

      So try horizontal + vertical layouts or check, if there really is some empty cell (which should be, since you don't take the widget but just hide it).

      QGridLayout::columnCount() should return (at least) 2 when your app is in "small" mode (and also 2 or 3 when you switch to "big")

    • D

      Unsolved Stacking toolbars?
      General and Desktop • qtoolbar stackedwidget • • Dariusz

      3
      0
      Votes
      3
      Posts
      361
      Views

      D

      @SGaist said in Stacking toolbars?:

      Hi,

      AFAIK, no there's not. What kind of interface are you looking for ?

      Hey

      Woah this one slipped my fingers...
      I think it would look like QTabWidget with only QToolbars as its children, each toolbar being 1 other widget. But with difference that that the QTab"ToolBar" would be a toolbar so I could place it like toolbar widget... ?

      Perhaps I will need to somehow extend QToolbar with QTabBar and somehow make it work mhmm

    • M4RZB4Ni

      Unsolved Change StackedWidget Pages With TreeWidget
      General and Desktop • stackedwidget tree widget signal & slot • • M4RZB4Ni

      5
      0
      Votes
      5
      Posts
      1783
      Views

      c.savur

      @M4RZB4Ni

      You may want to see this example

      http://doc.qt.io/qt-5/qtwidgets-dialogs-configdialog-example.html

    • lagodolio

      Solved Communication between QWidgets in Stacked Window
      General and Desktop • stackedwidget signals&slots • • lagodolio

      13
      0
      Votes
      13
      Posts
      3427
      Views

      lagodolio

      Perfect !

    • B

      Setting Focus on Button and let verticalScrollbar to Top does not work
      Mobile and Embedded • verticalscrollb stackedwidget issue qt5.5 scrolling focus embedded • • BluTiGeS

      1
      0
      Votes
      1
      Posts
      783
      Views

      No one has replied

    • A

      How to use Arrows key and Enter key for navigation/selection in a stacked widget Qt5 application?
      Mobile and Embedded • embedded linux qt5.2.1 qtcreator navigation arrowkeys enter key selection stackedwidget • • Ajith_P_V

      1
      0
      Votes
      1
      Posts
      1266
      Views

      No one has replied