Who knows QML scrollbar component with the standard Windows style?
See the blog entry QML Components for Desktop? in the Qt Labs Blog. But beware: this is unfinished code and in my installation (Qt 4.7.2, Vista, MSVC-2008) the example did not work out of the box for me.
You probably don't need this anymore, but I just stumbled into the same problem and this post might be useful to whoever have the same needs. It contains a scrollbar qml source that worked pretty well for me. It doesn't have the standard windows style though, so you'd have to tweak its appearance a little.
Related
I developed a simple QT application on Windows using QT creator 5.8 with good result. I used a simple form with QSpinBox.
To fix the color of the QSpinBox I wrote in the related style sheet
color:rgb(255,255,255);
Then I moved the application on MaxOs but the look of QSpinBox changed.
Did you have a similar problem ? How did you fix it ?
Thank you very much for your help and cooperation
regards
This is because the QWidget appearance actually depends on the platform. One (limited) solution is to use the palette, with setForegroundRole
The other is to use stylesheets, like you did, but you very likely will have to redefine more to obtain the desired result, and result will of course depend on the platform. You can actually make the result completely custom using only stylesheet. Just make sure to set the "border" style to avoid problems.
Here is Qt documentation about style sheets: Qt StyleSheets
I am working on a project that already has begun being developed. ON some page, there is some textarea and a text-editor using gwt, from which I know nothing. The fact is that the style of the toolbar is very austere. Does anybody knows some way to make this toolbatr nicer, is there any doc somewhere ?
Best,
Newben
Here's a comprehensive guide on styling GWT.
I want to use a custom widget in the GUI-Designer of Qt-Creator IDE.
So i created a class which inherits from Qt's QWidget. It worked to place
it on a QMainWindow programaticaly, but have to do my work in the desiger
where it does not appear as an option in the kist of components.
I googled to find a solution for problem an found an manual on, who guesses, the
Qt doc page ( https://doc.qt.io/archives/qt-4.7/designer-creating-custom-widgets.html
and https://doc.qt.io/archives/qt-4.7/designer-creating-custom-widgets.html).
I tried to follow it but doesn't work.
Does someone know an other way to do this or can give a hint where i can search
for problems following this tutorial?
Thanks in advance.
Codierknecht
There is a different example in the examples section of the Qt documentation that I think is a lot clearer.
Custom Widget Plugin Example
It was a little unclear to me when reading the tutorial where the Q_EXPORT_PLUGIN2() macro goes, but having full example code and project alleviates that.
If you are like me, the analog clock example didn't do it for you, in which case I found just one better tutorial. It may be on the kde site but I you dont need kde to do it, it just explains how to make the custom widget a plugin so you can add it into Qt Designer, rather than having to code it in, which is the norm when you just add a widget to your project and customize the class. I hope this page helps you like it helped me, get in the right direction of writing a single Qt Designer (or multiple) plugin:
Writing Qt Designer Plugins
If this link ever becomes dead, just do a search for the link itself, usually that will turn up the original page in someone's cache, as they do in the other examples above (the dead links in the above answers that just take you to main area and not to the pages originally intended).
Does Qt support ribbon control?
I want to share with you the link to site has published screenshots of their component Qtitan Ribbon for Qt.
http://www.devmachines.com/qtitanribbon-overview.html
While there is no dedicated Ribbon widget in Qt, you can fashion something similar yourself. You could take a QTabWidget and put some buttons inside (and optionally style it to look a bit more like Microsoft's Ribbon). Depending on what you're trying to accomplish, that might suffice.
One of their sample apps apparently has a ribbon, so it should be do-able.
http://qt.nokia.com/images/products/vtk-designer-opengl-screenshot
You can take any JavaScript/JQuery ribbon, insert it into QWebView and do whatever you want with it, using the Qt Webkit Bridge.
There is no Qt ribbon control.
I believe there are license issues preventing Nokia from developing a ribbon control that is similar to Microsofts.
There are free alternatives to QtitanRibbon by now, for example, checkout:
https://github.com/martijnkoopman/Qt-Ribbon-Widget
You can even directly use it in any *.ui file!
Simply add a QTabWidget in QtDesigner and then promote that widget to the Ribbon class.
No, it doesn't. I didn't find out any plan to support it in the future.
We use QtitanRibbon, and it works very well for us. Support has been good, documentation on the short side. Worth noting that it not only provides a ribbon UI, it also makes it convenient to implement dark mode (or in our case, we opted for grey mode).
I need to forbid the tab input in a QPlainTextEdit widget. Instead tab should be used has a "focus next" widget. It seems that setTabChangesFocus(bool) is made for that but setting it to true has no effect. I guess it's a Qt bug. Did anyone experiences the same issue and find a solution?
I'm using Qt 4.5.2 on snow leopard.
Thanks,
Boris
The correct solution to this is to use a focus proxy widget. See:
http://doc.qt.io/qt-4.8/qwidget.html#setFocusProxy
I'm using Qt 4.5.3 and I quickly tested it in my app, you're absolutely right, setTabChangesFocus(true) should switch from "tab into the TextEdit" to "tab to change focus"...
I'm on windows XP tho, did you reimplement QPlainTextEdit ?
In the meantime, if you really don't find the source of your problem, you could maybe use a EventFilter...
Thanks Andy, I actually found a solution. It seems that you need to put it inside another widget (a groupbox for example) and it should work.
Boris.