Forum
Sign Up

There is a bug about pos()

11 years 7 months ago #1 by Shao Hua Cai
In the ribbonmdi sample, I add "ribbonBar()->setFrameThemeEnabled();" at the last line in the function "void MainWindow::createRibbon()".

I close this program, and start this program, you will see the window to move up.

Try more than once will be more apparent.

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #2 by Developer Machines
We can't reproduce this bug. Could you please provide more details (screenshots, windows theme (clasic, air), OS version and etc.)?

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #3 by Christoph (Andritz)
i had the same problem.

now i use geometry() and everything works fine...

Please Log in or Create an account to join the conversation.

More
11 years 3 months ago #4 by Shao Hua Cai
platform: windows xp sp3 qt5.0.2(32 bit)

void MainWindow::writeSettings()
{
QSettings settings("Trolltech", "MDI Example");
settings.setValue("pos", pos());
qDebug() << pos(); // it will output QPoint(-4,-4) first; QPoint(-4,-6) second; QPoint(-4,-8) third;
settings.setValue("size", size());
}




close program; run again, the form will move up:

Attachments:

Please Log in or Create an account to join the conversation.

More
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.150 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )