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. QToolBox overlapped on top of window

QToolBox overlapped on top of window

Scheduled Pinned Locked Moved General and Desktop
9 Posts 1 Posters 6.0k Views
  • 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
    genjix
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      genjix
      wrote on last edited by
      #2

      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
      0
      • G Offline
        G Offline
        genjix
        wrote on last edited by
        #3

        Any suggestions?

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          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
          0
          • G Offline
            G Offline
            genjix
            wrote on last edited by
            #5

            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
            0
            • ? This user is from outside of this forum
              ? This user is from outside of this forum
              Guest
              wrote on last edited by
              #6

              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
              0
              • G Offline
                G Offline
                genjix
                wrote on last edited by
                #7

                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
                0
                • ? This user is from outside of this forum
                  ? This user is from outside of this forum
                  Guest
                  wrote on last edited by
                  #8

                  can one download ur poker game :)

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    genjix
                    wrote on last edited by
                    #9

                    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
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved