#154 QGraphicsView showFullScreen still showing status bar

unstable
open
nobody
None
2014-08-27
2012-02-08
q8phantom
No

I attached a smaller file, with exact problem, and to the point exactly! (Only 1 main and one short class)

http://www.zshare.net/download/990172096a22f78d/

the QGraphicsPixmap item is creating the problem as far as I can see!

QGraphicsPixmapItem::setPos() methode is what making the status bar appear again, even though it should be hidden ( I don't know how, and why is this happening )

So after this, as a workaround someone can run

    v->showMinimized();

    v->showFullScreen();

on the QGraphicsView so the status bar will hide again, there should be called in the same order

To fix the small projected I uploaded in earlier post, open simpler.cpp

Go to the last methode and find this if statement

if (currentDegree > 360)

add to it the following 2 lines

    v->showMinimized();

    v->showFullScreen();

so it will look like this

if (currentDegree > 360) {

    currentDegree -= 360;

    v->showMinimized();

    v->showFullScreen();

}

Let's also not forget to make QGraphicsView* v as a class member and replace the line in the constructor which is

 QGraphicsView* v = new QGraphicsView();

with this

v = new QGraphicsView();

Now, the project will work perfectly!!!!

It's really strange

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks