View the Most Wanted LQ Wiki articles.
Go Back > Blogs
User Name



Tooling Up. ui-tool (QT4 ui file utilites)

Posted 12-15-2012 at 11:16 AM by rainbowsally
Updated 06-10-2013 at 05:17 PM by rainbowsally (bullet list not showing correctly + typo fix + parag alignment)

UPDATE: (2013-06-10) There's a stand-alone version of the uitool here.

It's part of the next libLQ-qt/mc2 project but that lib is not ready to fly yet.

Note: This is now part of the libLQ-qt download, but it's been renamed lq-uitool. It builds in the tools folder and should install automatically if all goes well.

Posted in Uncategorized
Views 795 Comments 0 rainbowsally is offline

ui-tools implementation (ui-tools.cpp)

Posted 12-15-2012 at 10:57 AM by rainbowsally
Updated 12-15-2012 at 09:29 PM by rainbowsally (linkage to first part + parag alignment fixed)

ui-tools implementation (ui-tools.cpp)

The following changes are in the code below, but are listed in case you already have the file and want to fix it yourself (and see the context of the problem).

Changelog Dec 15 2012 (second prob)
"Unknown error" msg issued when it's not an error.

Here's the fix. Whenever we call
  ok = find_slots(...);
we need to return 'true' without acting on the return values but not return 'false'...
Posted in Uncategorized
Views 703 Comments 0 rainbowsally is offline

A QT4 InfoBox w/ StaysOnTop, Gradients, And Some Other Junk

Posted 12-14-2012 at 05:04 AM by rainbowsally
Updated 08-06-2014 at 10:37 AM by rainbowsally

A QT4 InfoBox

Today's Features
  • An Info Box, callable the commandline or a shell program that has scrollbars and resizes depending on content.
  • Using some of the LQ-qt lib functions.
  • A gradient stylesheet. Open the ui file with Designer and take a peek at the stylesheet syntax.
  • A snippet to make a window stay on top.
  • A way to resize a form window depending on text width and height of a TextEdit widget.
  • Using grid layout to make a resizable window and using 'widgets' instead
Posted in Uncategorized
Views 819 Comments 0 rainbowsally is offline

Generic QT Signal/Slot --or-- Using Dummy Custom Widget in Designer -- No Plugin Req'd

Posted 12-13-2012 at 02:52 PM by rainbowsally

[This is FUN!! It works. What a freaking trip. :-)]

The previous entry on using Old Style callbacks wasn't much of a hit. Ooooooohhhh... it's a hit alright.

But here it is in it's second incarnation cleaned up a bit though it needs a bit more simplification due to the number of elements that are involved and where they need to go. But this is cool.

Today's Features
  • Using a custom widget in Designer without making the plugin.
  • Using the "Old
Posted in Uncategorized
Views 815 Comments 0 rainbowsally is offline

A Stand Alone executable QT MsgBox with Stays On Top attribute

Posted 12-13-2012 at 08:59 AM by rainbowsally

A Stand Alone executable QT MsgBox with Stays On Top attribute.

Today's Features:
  • A non-modal qt based dialog/message box that STAYS ON TOP of the window stack.
  • How to center a window on the screen.
  • Using the short optargs to parse the options.

The msgbox utility in the 'extras' folders of the mc2 d/load (see link below) uses xmessage for the display widget. That makes it independent of QT so it can run on any computer that has the X windowing system.

Posted in Uncategorized
Views 1042 Comments 0 rainbowsally is offline


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

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