I'am writing with my friends a simple photo viewer in C++ using gtkmm. Everything goes quite well, except that our app is looking very poor and completely diffrent from any other GTK+ application on ours Linux desktops. If anyone could give us some advice about what are we doing wrong, we will be very grateful.
Code responsible for creating the window is here (the rest is in the repository):
https://github.com/jjkrol/ZPR/blob/master/src/gui.cpp
Screenshot with the look:
Any help would be apprecieated, thanks in advance!
GTK 3.0 has a different theming than GTK 2.0. Probably any of your other GTK+ applications still depend on 2.0 so you don't have set a theme for 3.0. Find out how to set it to e.g. Adwaita in your desktop environment.
Btw: have a look at Glib::RefPtr<>.
Related
I am learning unity 2D Games though video tutorials. The video tutorial I am following has used the older version of "CN Controls Joystick" (https://www.assetstore.unity3d.com/en/#!/content/15233).
Current version of "CN Controls Joystick" is completely different from the older version used in the tutorial.
So, does anyone have older version of "CN Controls Joystick". If anyone have, please share with me for my practice.
Thanks
the older version its not necesary, you only have to know are the axis names of every joystick, i think now its easier, and I recomend you to open the example scene, and look for the scripts atached to the player... if you need more help, I can help you. only tell me what you want to done and ill show you how to do it.
I am searching for a framework(preferably c++, but i can learn other languages too) for my application. I will write what i need:
Borderless window(no buttons,frames etc.)
Real time 3d model rendering(or at least easy way to show 2d animation made from 3d model)
Cross-platform support(not mandatory)
If there is any other details you need to know, please tell me.
Thanks in advance.
Xojo will also do what you want. It creates Windows, OS X and Linux desktop apps and has built-in support for OpenGL.
http://www.xojo.com
One of the best cross-platform Gui-Frameworks for C++ is Qt. It can do 3d-stuff using OpenGL too. However, if you only need a plain window without any controls you may want to look into the next OpenGL tutorial for some infos.
I recommend Unity.
It works in Windows, Mac, Linux, iOS, and Android. (Furthermore in some game consoles.)
Its support languages are C#, boo and js.
C# is like C++ and easy to learn.
I'm wondering how to develop visually modern, with attractive GUI applications in QT. When I run QT Creator and start new project, the GUI looks very basic and "pure", just like simple win32 apps. But look for example at Allegorithmic Substance Designer 2, where GUI looks somehow similar to WPF. There are many other applications with nice-looking GUI. So, the question is: how to do this? Is there any extension/library to QT, which provide richer GUI experience? Or it must be developed from scratch? Thanks for replies in advance.
As well as Nano's answer, I think it would be worth your while to search around for any Qt stylesheets others have made.
For example, this one that mimics Microsoft Office.
Unfortunately, there doesn't seem to be very many of them available.
I found these useful links, some of whose links may give some ideas:
Qt Stylesheet Snippet Repository
Another idea might be to search for example qml files in Google Code Search. This search for .qml files has plenty of hits. Before using any of them, you would obviously need to check its license.
Have you tried Nokia's Qt Creator? If you're looking for something "similar" to WPF I assume you're referring to its declarative nature, QML being XAML's counterpart in such regard.
I dont have much experience with C++ projects like Gecko or Webkit and I'd like to embed either Gecko or Webkit to a project so that I could construct my UI with HTML and CSS.
Something I'm wondering is that how do I handle events and such in C++ (no JavaScript)? If there's any resourceful tutorial on this topic I'd love to read it.
Qt has a very nice module called QtWebkit that is good for this:
http://doc.qt.nokia.com/latest/qtwebkit.html
You can evaluate Javascript in the webpage from within C++, and pass data from the webpage to your containing C++ program.
Not much use if you're already using something other than Qt, though ;) Maybe a little more info on what you've already done and what you're aiming for?
There is also WebkitGTK which does pretty much the same as qtwebkit. The difference is that GTK is much lighter than QT. It has been ported to mac, linux and windows.
For iOS, there is the native UIWebView.
For Android, you can use android.webkit.WebView.
Or, you can use PhoneGap for a nice wrapper for mobile devices only.
I'm interested to know if gtkmm w/ ATK (or whatever) works with MSAA like Qt does. We're looking right now at switching toolkit from WX and it turns out that our testing software relies on MSAA to do it's thing (something I wish I'd known 3 years ago when we picked WX to begin with). Of all the GUI toolkits, I prefer GTKmm mainly due to it's use of signals and slots but in a way much more expressive and generic than Qt's....and without the need for the extra build step that requires the Qt VS plugin. The designer is much better too.
So I'd like to use GTKmm but the only discussions and google stuff I can find on the topic are 3+ years old. They lead me to believe the answer is no, it doesn't support it and if it does it's really shoddy. But a lot can change in 3 years.
So, anyone that uses GTK or GTKmm on win32 know if it supports the windows accessibility framework?
I can’t say for sure but I would lean toward very little to no support. I use the Jaws screen reader SOFTWARE SINCE I’m blind. It uses MSAA quite heavily and GTK applications such as Pidgin are almost completely inaccessible. While I can read some of the text on a screen figuring out weather I’m in an edit field or weather a button is selected is impossible. If my screen reader can’t deal with GTK applications I assume your testing software will have major issues as well.
I don't know if this is still being tracked but I will second this assessment as another windows screen reader user. gnuCash was the app I tried and it was pretty rough going. Worked like a dream in Gnome with Orca though. Apparently, it's like this, if you want windows accessibility, use QT and WxWidgets. If you want Linux, use gtk+. QT is going to be accessible in Linux apparently though this is yet to be (not till gnome 3, I think). Pity you had to abandon WxWidgets. I personally like their widgets since it has those sizers which take much of the guess work out of placement of controls. Important when you can't see and you want to build a gui. Looks like about the only cross-platform accessibility solutions right now are Xul and SWT (Java, you know). Sad thing about WxWidgets is that this sort of thing was reported to them two years ago but nothing seems to have been done about it.
http://trac.wxwidgets.org/ticket/9785
I would be delighted to know that I am wrong about this. I doubt it, though.