LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

mini-term in qt4

Posted 01-17-2013 at 03:34 AM by rainbowsally
Updated 08-06-2014 at 07:58 AM by rainbowsally

mini-term in qt4.

Today's features:
  • A simple terminal-like application built from a qt4 class that can be used for other stuff too.
  • The present application can run shell commands and has copy/paste (ctrl-c, ctrl-v) capabilitity.
  • Another example of the Windows-like api so that C/C++ code can run in Qt4.
  • Runs the custom code (terminal in this case) inside a QT 'exec' loop... sorta. We call it 'run()'.

Screenshot:
http://rainbowsally.org/rainbowsally...iterm-test.png...
Member
Posted in Uncategorized
Views 448 Comments 0 rainbowsally is offline
Old

QT4 -- Having trouble with qInitResouces_<appname>() ?

Posted 01-14-2013 at 03:46 AM by rainbowsally
Updated 01-14-2013 at 04:01 AM by rainbowsally

Having trouble with qInitResouces_<appname>()?

Try this.
Code:
#ifdef Q_INIT_RESOURCE
#undef Q_INIT_RESOURCE
#endif

#define Q_INIT_RESOURCE(name) extern void qInitResources_##name()
The version of this macro in qglobal.h could never have ever worked.

If you enjoy digging into the low level stuff, I think you'll be amused by the context of this bug. ;-)

- The Computer Mad Science Team...
Member
Posted in Uncategorized
Views 460 Comments 0 rainbowsally is offline
Old

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

Posted 12-14-2012 at 04:04 AM by rainbowsally
Updated 08-06-2014 at 09: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
...
Member
Posted in Uncategorized
Views 599 Comments 0 rainbowsally is offline
Old

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

Posted 12-13-2012 at 01: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
...
Member
Posted in Uncategorized
Views 618 Comments 0 rainbowsally is offline
Old

A Stand Alone executable QT MsgBox with Stays On Top attribute

Posted 12-13-2012 at 07: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.

...
Member
Posted in Uncategorized
Views 652 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 11:34 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