Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • How to do directory browsing?

    5
    0 Votes
    5 Posts
    5k Views
    A
    [[doc:QFileDialog]] is not what you need?
  • Shared Library: Import and export simultaneously ?

    3
    0 Votes
    3 Posts
    3k Views
    D
    See http://doc.qt.nokia.com/stable/sharedlibrary.html for hints.
  • ComboBox Max Amount of Items?

    4
    0 Votes
    4 Posts
    3k Views
    F
    Not sure if you are reporting a problem or thinking about what could be a problem. On Linux it usually works with a scrollbar on the combo to scroll to other items. Some themes report a down arrow at the end of the combo to allow the user to scroll.
  • Mixing Qt3 and Qt4 core in an application

    3
    0 Votes
    3 Posts
    3k Views
    C
    Maybe this helps as well: "Possible: Program executing Qt3 and Qt4 code?":http://stackoverflow.com/questions/910230/possible-program-executing-qt3-and-qt4-code"
  • How to change the text color in QTableView

    3
    0 Votes
    3 Posts
    22k Views
    A
    Rajveer, are you using a QTableView this time, or are you really using a QTableModel as you were in your last questions? In the latter case, you should check out setting the Qt::ForeGroundRole on the cell you want to color. @ QTableWidgetItem* myItem; //set it to the item you want to manipulate myItem->setForeground(QColor::fromRgb(255,0,0)); //make this item red. @ If you really have your own model, then you need to return this color as a variant from your data() method, but I doubt you are doing that.
  • QGraphicsTextItem img path in html

    5
    0 Votes
    5 Posts
    3k Views
    R
    [quote author="fober" date="1320851449"]I've made additional tests and the behavior difference looks like a bug to me. Thus I'd like to: make a bug report. Any place to report? stop soliloquising :-) -- Dominique[/quote] For bug reports use "this":https://bugreports.qt.nokia.com [quote]soliloquising[/quote] -Is it Italian? Does it in English mean monologues sing- :-) ? P.S. Oh, google translate helps me, it's soliloquies sing :-) . Thank's for new word.
  • 0 Votes
    7 Posts
    16k Views
    A
    I get these errors every couple of days. My standard procedure (until it works) is: -) Run qmake -) Manually delete the obj files of the source modules I know need to be re-compiled, maybe also delete certain Makefiles (if I am in a multi-sub-project environment, and only want to rebuild one of those projects) -) Do a clean, manually delete any Makefiles, and rebuild Usually, deleting the corresponding obj file is enough. Edit: BTW, Windows XP here
  • When generally we need to use QMetaobject class?

    5
    0 Votes
    5 Posts
    4k Views
    A
    I use QMetaObject extensively to get information about an object's properties in a scheme to load and save objects to an XML structure. Thanks to that system, I can automatically generate XML key names from the property names, as well as the type. I can then read the XML, and automatically convert the contained strings to the correct type, and set them as a property. I the other direction, I read the properties, convert them to a locale-independent string, and write them to the XML. The scheme took a while to set up, but now adding a new object to the scheme is a breeze, and changes to name or type of an XML parameter happens in exactly one place. Thanks to QMetaEnum, I can even save enum value names, which makes the XML more user-readable.
  • Doubt in Screenshot Example Code

    7
    0 Votes
    7 Posts
    4k Views
    S
    @Andre, @Broadpeak, @Mkosim Thank You...
  • Application deployment

    8
    0 Votes
    8 Posts
    6k Views
    Z
    For my view, I used "InstallJammer":http://www.installjammer.com/ to make installer in windows & linux. It likes BitRock but it's opensource :) For Mac, I used .dmg files to deploy application. But one things to remember that, .dmg files are not writable media. It likes disc images.
  • [Solved] Starting a GUI program through Terminal with Arguments

    8
    0 Votes
    8 Posts
    6k Views
    G
    You're welcome. Mac behaves sometimes like an alien - it feels a bit strange at first, but one gets used to it :)
  • Qlocalserver & qlocalsocket server restart

    2
    0 Votes
    2 Posts
    3k Views
    S
    Here's a twist (maybe...) I'm wondering if it makes more sense start the server as a QProcess of the client. That way, it might be easier|better to monitor the server's state as well as control restarts. As I mentioned, I'm a newbie. Just starting out w/Qt and only a moderate c++ programming to begin with. So if I'm way off base, just let me know and go back and do some more research.
  • Make QTableWidget expand when dialog window size is changed

    5
    0 Votes
    5 Posts
    6k Views
    P
    although the widgets, buttons do change position and size with respect to the parent dialog window
  • Any meetings/trainings after QtDevDays 2011 at San Fransisco

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Replace Widget in Layout

    7
    0 Votes
    7 Posts
    16k Views
    K
    Missed it)
  • How to remove black border around widget?

    10
    0 Votes
    10 Posts
    11k Views
    B
    I think that Qt QScroll area works wrong - I have reimplemented it and had no problems with borders!
  • Tray menu is not getting hide.

    4
    0 Votes
    4 Posts
    3k Views
    L
    I think the question is: why does your application not work as Windows - at least as far as I know - automatically hides new system tray icons. To be honest I don't know how Windows decides which icon is displayed and which not. Are the any active bubbles, context menus or notifications that might keep the icon "active"?
  • Qt, gsoap, and SSL

    3
    0 Votes
    3 Posts
    5k Views
    Y
    You need to have Qt configured using openssl option. @./configure -openssl-linked OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto'@
  • Add push buttons dynamically to a widget

    8
    0 Votes
    8 Posts
    21k Views
    R
    [quote author="fluca1978" date="1320838708"]It will be simpler to know where the segfault is generated. Try debugging each line or place some qDebug() in your code to understand at which line it happens. Usually the problem means you are trying to access an object you haven't created or you have already destroyed.[/quote] Oh, exactly I've forgot about debug. @sri438 just press F5 in QtCreator and you'll see where this error happens.
  • Some strange problem related Qt static library.

    4
    0 Votes
    4 Posts
    2k Views
    L
    Well, when you compile something static the linker does not include all the symbols in the resulting binary, it usually just picks the ones referenced. So if your library A has references to symbols 1, 2 and 3 of library B only those are included. If your application now references symbol 4, 5 and 6 of library B, but is just linked against A (which has only 1, 2 and 3) you will get an linker error and you will have to link against library B again (so the linker can pull out symbol 4, 5 and 6).