LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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 1206 Comments 0 rainbowsally is offline
Old

An STL Template Experiment

Posted 12-18-2012 at 05:05 PM by rainbowsally

Today's features:
  • Getting an address of an iterator from stl.
  • Creating a foreach() macro.
  • A couple of ways to work around unwanted C++ compiler warnings.

STL is a freaking nighmare to trace in a debugger so it's not too easy to tell what goes on in them but one thing became quite clear and that is that iterators are generic pointer types internally, which makes sense since STL needs to deal with so many different types.

Here's a little test to play with to show how...
Member
Posted in Uncategorized
Views 1188 Comments 0 rainbowsally is offline
Old

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

Posted 12-15-2012 at 10:16 AM by rainbowsally
Updated 06-10-2013 at 04: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.
http://www.linuxquestions.org/questi...3-06-10-35568/

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.

But...
Member
Posted in Uncategorized
Views 1268 Comments 0 rainbowsally is offline
Old

ui-tools implementation (ui-tools.cpp)

Posted 12-15-2012 at 09:57 AM by rainbowsally
Updated 12-15-2012 at 08: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
Code:
  ok = find_slots(...);
we need to return 'true' without acting on the return values but not return 'false'...
Member
Posted in Uncategorized
Views 1171 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 1630 Comments 0 rainbowsally is offline

  



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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration