Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QToolBox overlapped on top of window

    General and Desktop
    1
    9
    5278
    Loading More Posts
    • 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
      genjix last edited by

      Hey,

      I'd like to have a ToolBox on the side which doesn't resize the main work area. Like 'overlay' the contents underneath.
      Adding it to a HBoxLayout:
      !http://img829.imageshack.us/img829/7843/smallf.jpg!

      And if I try parenting it to my QMdiArea, then it's a) transparent b) a fixed size that doesn't resize.
      !http://img245.imageshack.us/img245/1999/parent.jpg!

      Strangely if I add a stylesheet, I at least get a background colour
      !http://img541.imageshack.us/img541/8438/stylesheet.png!

      1 Reply Last reply Reply Quote 0
      • G
        genjix last edited by

        Like if I add it to the right, then opening the toolbox will cause the main area to resize by cutting off a section of the right.

        Maybe I want a resize policy for the left hand side? Namely: when resizing from the left, dont cut off from the right but cut off instead from the left? Something like that tongue twister I've written :p

        1 Reply Last reply Reply Quote 0
        • G
          genjix last edited by

          Any suggestions?

          1 Reply Last reply Reply Quote 0
          • ?
            Guest last edited by

            I think one way to do this would be to use the QGraphicsView framework and by setting your toolbox to QGraphicsProxyWidget, with a higher z-value and expand it over the right area which again could contain other QGraphicsProxyWidgets ...

            1 Reply Last reply Reply Quote 0
            • G
              genjix last edited by

              hey thanks. You're right, that would work :] But isn't QGraphicsView very slow? Especially since this covers the whole screen.

              1 Reply Last reply Reply Quote 0
              • ?
                Guest last edited by

                I've done some decent animations on QGraphicsView and got almost 25-30fps, so think its OK. Have you seen the Classic chips demo that ships with Qt?

                "QSceneGraph":http://labs.qt.nokia.com/2010/05/18/a-qt-scenegraph/ promises a much better performing solution, but that may be for a future version of Qt?

                1 Reply Last reply Reply Quote 0
                • G
                  genjix last edited by

                  yep I've seen it :) I'm actually using QGraphics extensively ("youtube video":http://www.youtube.com/watch?v=8tAASvcrJ78 "source code":http://github.com/genjix/)
                  So I'm a little apprehensive putting several QGraphicsView's inside another QGraphicsView while the whole thing is running off Python (pyside ;)
                  I will try it out though.
                  !http://img229.imageshack.us/img229/4347/screenec.png!

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest last edited by

                    can one download ur poker game :)

                    1 Reply Last reply Reply Quote 0
                    • G
                      genjix last edited by

                      yep, it's "free software":http://github.com/genjix/kartludox . I'm writing the server to be an IRC bot so people can easily host their own servers running games. And for real currency I'll setup one free service using "bitcoin":http://www.bitcoin.org/

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post