hi every body, iam writing a small web browser, and i will like to know how to implement a qtabwidget with the tab bar right in the window title bar, just like google chrome firefox4 or IE9, please help!
hi every body, iam writing a small web browser, and i will like to know how to implement a qtabwidget with the tab bar right in the window title bar, just like google chrome firefox4 or IE9, please help!
for windows Vista and above you can use the new windows api, but ofcourse it will not work on WinXP and linux. Other way is to write your own custom skin by using Qt::FrameLessWindowHint
i can guess going into that windows api will not be as chocolate like Qt is! i also saw your class, http://qt-apps.org/content/show.php?content=138161 , is it possible using it to implement such a title bar, or similar?
yes it is possible.. use the setContentsMargin() function of the class to increase the area at the top, and do some custom painting to look like a title bar. I may implement a full function like that in future
i did not find the setContentsMargin() function in the header file of your file, also this is what i did
Qt Code:
int main(int argc, char *argv[]) { MainPage *fenetre=new MainPage; NcFramelessHelper *frame = new NcFramelessHelper; frame->activateOn( fenetre ); return app.exec(); }To copy to clipboard, switch view to plain text mode
what i get is just a windows tha i cannot resize, with the default windows7 title bar, i event compiled the example, same thing, no customm title bar as i can see in the prview here
please help! iam also impatient that you implement that function
yes.. i half implemented that function and later did not got time time to complete it. As i have not worked on it for quite some time
now, i was under impression that its already there.
it should work, i have just tested it on ubuntu. I dont have Win7 rite now so i can test it on that. But i had tested it on Windows before and it seem to work well.what i get is just a windows tha i cannot resize, with the default windows7 title bar, i event compiled the example, same thing, no customm title bar as i can see in the prview hereQt Code:
MainPage *fenetre=new MainPage; NcFramelessHelper *frame = new NcFramelessHelper; frame->activateOn( fenetre );To copy to clipboard, switch view to plain text mode
please help! iam also impatient that you implement that function
What does the status functions like widgetMovable() returns? And do you set any other flags inside your MainPage?
sorry which functions?
anyway, i am waiting impatiently that you implement that!
Bookmarks