Stream: Google Code-in

Topic: qt project


view this post on Zulip Sean (Jan 19 2018 at 18:16):

@Sean I'm interested in : D) developing a brand new Qt interface
but why use Qt? how native Qt Applications look?

@Naseef there's a lot of reasons for using Qt, and it's one of the most popular cross-platform toolkits that provide native platform behavior

view this post on Zulip Sean (Jan 19 2018 at 18:17):

if you were designing a new application, what would you use?

view this post on Zulip Sean (Jan 19 2018 at 18:17):

(or migrating a large old application, as in this case)

view this post on Zulip Naseef (Jan 19 2018 at 21:53):

Qt is still new to me, I've been doing Gtk and .NET.

view this post on Zulip Naseef (Jan 19 2018 at 21:54):

It'll be good to use Qt. ( I googled a bit about this).

view this post on Zulip Sean (Jan 19 2018 at 21:54):

Qt is way better than Gtk and .NET is practically windows-only

view this post on Zulip Sean (Jan 19 2018 at 21:55):

way better in terms of native behavior at least

view this post on Zulip Sean (Jan 19 2018 at 21:55):

gtk doesn't try to do that, their model is consistent behavior

view this post on Zulip Naseef (Jan 19 2018 at 21:55):

IMO Archer is already a really good program.

view this post on Zulip Naseef (Jan 19 2018 at 21:55):

Which gui toolkit does it use?

view this post on Zulip Sean (Jan 19 2018 at 21:56):

it's mediocre from a design perspective ... imho

view this post on Zulip Sean (Jan 19 2018 at 21:56):

it uses Tk

view this post on Zulip Sean (Jan 19 2018 at 21:56):

and incrTk

view this post on Zulip Naseef (Jan 19 2018 at 21:57):

Should we take some widely used cad programs as inspiration?

view this post on Zulip Naseef (Jan 19 2018 at 21:57):

Tk is very lightweight

view this post on Zulip Naseef (Jan 19 2018 at 21:59):

We also have to make it start faster, unlike archer.

view this post on Zulip Naseef (Jan 19 2018 at 21:59):

What about some customizable interface?

view this post on Zulip Sean (Jan 19 2018 at 22:00):

Tk is very difficult to make behave exactly like we want, hardly anything is automatic

view this post on Zulip Naseef (Jan 19 2018 at 22:00):

Well, A CAD program don't have to be lightweight.

view this post on Zulip Sean (Jan 19 2018 at 22:00):

it's not "modern" by any stretch, and has been complicated over the years to maintain

view this post on Zulip Sean (Jan 19 2018 at 22:01):

whether the app starts fast or slowly with a loader is on the devs, not the toolkit

view this post on Zulip Sean (Jan 19 2018 at 22:01):

I'm inclined to use the gaming industry as inspiration as they adapt interfaces regularly and must have essential usability

view this post on Zulip Sean (Jan 19 2018 at 22:02):

that also implies avoiding particular technologies and approaches

view this post on Zulip Naseef (Jan 19 2018 at 22:02):

I like Unity3D's customizable interface.

view this post on Zulip Sean (Jan 19 2018 at 22:02):

(nobody makes games with Tk)

view this post on Zulip Naseef (Jan 19 2018 at 22:03):

I did! Some game in Tk when learning python!

view this post on Zulip Sean (Jan 19 2018 at 22:04):

unity is not open source

view this post on Zulip Sean (Jan 19 2018 at 22:04):

they have some open source libs they've released, but not the overall framework

view this post on Zulip Sean (Jan 19 2018 at 22:04):

when I say "nobody" I mean no professional shops that ship commercially

view this post on Zulip Naseef (Jan 19 2018 at 22:05):

I'm talking about its interface. every part of it is movable. It's just an example.

view this post on Zulip Sean (Jan 19 2018 at 22:05):

Tk runs under a lot of things, so indirectly some use it (e.g., python guis often involve tk), but few directly do any more

view this post on Zulip Sean (Jan 19 2018 at 22:05):

ahh, sure

view this post on Zulip Naseef (Jan 19 2018 at 22:06):

We can have multiple workspaces.

view this post on Zulip Naseef (Jan 19 2018 at 22:06):

some presets and customizable ones, Like in Blender.

view this post on Zulip Sean (Jan 19 2018 at 22:26):

sure, that'd be great

view this post on Zulip Naseef (Jan 19 2018 at 22:34):

Did you liked it because blender is open source? JK.

view this post on Zulip Naseef (Jan 19 2018 at 22:35):

Have you seen a Qt program that has such interface?

view this post on Zulip Sean (Jan 19 2018 at 22:35):

their approach actually predates them becoming open source

view this post on Zulip Sean (Jan 19 2018 at 22:35):

blender uses a custom open gl GUI

view this post on Zulip Sean (Jan 19 2018 at 22:35):

and yes, you can customize an interface like that (or do your own thing in an opengl context

view this post on Zulip Sean (Jan 19 2018 at 22:39):

they're called qt style sheets: http://thesmithfam.org/blog/2009/09/10/qt-stylesheets-tutorial/

view this post on Zulip Sean (Jan 19 2018 at 22:39):

another: http://discourse.techart.online/t/release-qt-dark-orange-stylesheet/2287

view this post on Zulip Sean (Jan 19 2018 at 22:39):

and http://spinningcubes.com/wp-content/uploads/2014/05/zerobp.png

view this post on Zulip Naseef (Jan 19 2018 at 22:40):

Customizing like moving views, resizing them, make them a separate window. (Like in GIMP)?

view this post on Zulip Naseef (Jan 19 2018 at 22:41):

not about colors or styles, which should be native to operating system.

view this post on Zulip Sean (Jan 19 2018 at 22:41):

sure you can do that -- that's just basic widget and window management

view this post on Zulip Sean (Jan 19 2018 at 22:41):

dockable windows/panels

view this post on Zulip Naseef (Jan 19 2018 at 22:41):

Yeah, I could find a way to say it.

view this post on Zulip Naseef (Jan 19 2018 at 22:42):

multiple layouts.

view this post on Zulip Naseef (Jan 19 2018 at 22:42):

with movable and re-sizable panels

view this post on Zulip Sean (Jan 19 2018 at 22:55):

yeah, that's pretty fundamental stuff

view this post on Zulip Sean (Jan 19 2018 at 22:55):

example: https://woboq.com/blog/qdockwidget-changes-in-56.html

view this post on Zulip Naseef (Jan 19 2018 at 23:06):

That's how BRL-CAD is going to be in the future.

view this post on Zulip Jeff Sieu (Jan 20 2018 at 05:33):

@Daniel Rossberg @Sean Made a small 2-line patch that changes the layout of CameraView so that it doesn't stretch when the window is vertically resized. What do you think?
qtgui.patch
before.png
after.png

view this post on Zulip Daniel Rossberg (Jan 20 2018 at 14:46):

committed (revision 70638)


Last updated: Oct 09 2024 at 00:44 UTC