LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices

Rate this Entry

qt4 - sudoku solver and closable toolbar examples

Posted 05-25-2013 at 10:54 AM by rainbowsally
Tags mc2, qt4, simple c

Qt4 examples.

SudokuResolver (qt4, only 180K)

screenshot http://rainbowsally.net/pub/sudoku.png

I got this at http://setup.weeb.ch, I believe. I reworked the make system using mc2 and made a few very minor changes, such as centering the window on showEvent() and addding save/restore to/from files.

There are several interesting features in the code from grid setup to BigList STL templates
and multi core processing code.

To make the app, first run
Code:
  make ui
to build the ui files, then
Code:
  make
There is no 'make install' but the file is a stand-alone app once it's compiled so you can
symlink or move it anywhere you like.

http://rainbowsally.net/pub/Sudoku-R...core-rs.tar.gz


ClosableToolBarTest

This next example was downloaded from QT's user contributed apps page.

It had a few non-standard issues, obviously written for windows, but has been converted to a basic 'make' system using mc2.

First create the ui files
Code:
  make ui
then the application.
Code:
  make
It should create the app named 'main' which will be clickable. The toolbar is not confined to the
space of the parent window and not all the toolbars are closable though all can be repositioned.

http://rainbowsally.net/pub/Closable...Test-rs.tar.gz


As always, if you poor saps are using kdevelop4, you will have a hell of a time working around the the predefined machinery. The developers have assured that they won't get complaints from neophytes but at the same time, the application is nearly unusable if you like to actually write your own code.

I use the kde3 version which I have installed into /opt/kde3. And kdbg is the world's greatest debugger. With those two tools you can really see what's going on in with the code.

If there's a better programming editor/ide than kdevelop3 around I have as yet not seen it. Unfortunately I haven't gotten the cool regex editor gui working (a perl script from apache), which worked for suse 10, but even without it, kdevelop3 is a knockout.

We call this progress?

Hey KDE, where is the next generation of developers supposed to come from?

This is an usigned rpm that MIGHT work for you. It at least uninstalls (with 'rpm -e'), so it's not too risky to try out on your system.

http://rainbowsally.net/pub/kdevlite-rs-1.0-1.i586.rpm

[You can use cpio to extract the files and see EVERYTHING that installs/uninstalls, if you know how.]

I have used kdevlite, but my current setup is make-based[tm] (available at fine linuxquestions web sites around the world) and can potentially mess up your ownerships in system files so if the rpm works, that's the way to go for now.

I believe the kdevlite is a script that sets up PATH and LD_LIBRARY_PATH for you and then runs kdevelop3 from /opt/kde3/bin. No configs are changed. But it's been a while.
Posted in Uncategorized
Views 405 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration