RingQt: The window title bar is going outside the screen – The Problem and the solution

When we write the next code

Load “guilib.ring”
app = new qApp
{
   win=new qWidget()
   {
      setwindowtitle(:test)
      setGeometry(0,0,200,200)
      show()
   }
   exec()
}

 

i would expect that the window will run at the point (0,0) with (200,200) size but the actual result is that the window title bar is going outside the screen

This is related to the behavior of Qt framework

The next code will solve the problem

   load “guilib.ring”
new qApp {
new qWidget() {
move(0,0)
resize(200,200)
show()
}
exec()
}

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s