Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.8k Posts
  • 0 Votes
    4 Posts
    3k Views
    G
    Basic C++ error. toStdString is not a static method. @ myabc.name = tempstr.toStdStr(); @
  • Fit QTableWidget headers

    3
    0 Votes
    3 Posts
    2k Views
    G
    There is no simple Qt method to share the space niceley between columns. You might want to consider setting stretchLastSection of the [[Doc:QHeaderView]] to true. This will allocate the remaining space to the last column.
  • [Solved] Problems building Oracle Call Interface (OCI) Plugin on Windows

    20
    0 Votes
    20 Posts
    20k Views
    I
    To those who might have problems with -loci, try replacing -loci with the path to oci.dll (like C:\XEClient\bin\oci.dll) in the both Makefile.Release and Makefile.Debug files on LIBS section.
  • [solved]UI Set

    7
    0 Votes
    7 Posts
    3k Views
    EddyE
    Great! Well done. If you consider this post as solved, please edit your first post and add [solved] in front of it.
  • QTCPServer & QThread

    3
    0 Votes
    3 Posts
    2k Views
    D
    That does not even compile http://developer.qt.nokia.com/wiki/Threads_Events_QObjects
  • How to set QDialog not visible on exec() method?

    2
    0 Votes
    2 Posts
    2k Views
    P
    Maybe you can call hide() inside showEvent()?
  • How can i use microsoft access database in Qt?

    8
    0 Votes
    8 Posts
    9k Views
    R
    startmenu -> All Programs -> Qt SDK -> Desktop -> cmd
  • Perform an automatic click on a webpage

    3
    0 Votes
    3 Posts
    3k Views
    0
    Well if you require not a very high speed... you could look into "IMacros" for firefox e.g. No programming needed, it does what you tell him to do ;) If you want to do it more seriously, well you should look into Script languages, like Volker pointed out. Qt and C++ are not really helping in that matter ;)
  • DOESN"T WORK D-Bus Remote Controlled Car Example

    2
    0 Votes
    2 Posts
    2k Views
    S
    This file is generated from the UI file created with Qt designer. You should run uic to create it manually. The compilation sequence in linux should be: $ qmake -project $ qmake $ make uic is executed inside the qmake command. If you use Qt Creator this is done automatically. For more info see the qmake and uic documentation. Bye!
  • Qt and JSON solution

    3
    0 Votes
    3 Posts
    4k Views
    sierdzioS
    Lars recently created new package, which is in Qt Project's playground now: "LINK":http://codereview.qt-project.org/#admin,project,playground/qtbinaryjson,info I have not tried that, though. Also, Qt5 has QtJsonDB module - I don't know what it does, really, but you might check it out. Up until now, most people I know were happy with QJson, though.
  • Opening new process window inside QMainWindow

    3
    0 Votes
    3 Posts
    3k Views
    T
    can I open it into label that placed on my window? No, you can't. P.S. You should to read "there":http://wiki.qt-project.org/Coding_Style.
  • [SOLVED] QMainWindow::QMainWindow: cannot access private member...

    7
    0 Votes
    7 Posts
    6k Views
    P
    @Volker: I am not mixing C and C++ code. Just QLibrary needs this addition to work fine (you mean "extern C" ?) because using CDECL as calling convention.
  • 0 Votes
    3 Posts
    3k Views
    G
    I would bet a penny that @ #include <QNetworkProxy> // or #include <QNetworkAccessManager> @ in the source file that establishes the connection will cure the error.
  • How can we trasfer widget focus to next widget by pressing tab key?

    8
    0 Votes
    8 Posts
    6k Views
    G
    The style in charge usually handles this. The widget having the focus is most often displayed differently. If not, then this is the usual behavior of that style and you should mess with that only for very good reasons - which most developers do not have, to be honest.
  • How to make a stopwatch in C++/Qt

    6
    0 Votes
    6 Posts
    7k Views
    R
    Consider these also :) http://developer.qt.nokia.com/books
  • [SOLVED] hostinfo.h: how to get the right ip address?

    9
    0 Votes
    9 Posts
    13k Views
    K
    thank you ShadowMoses. you have been lots of help :)
  • Radio button not checkable for users

    4
    0 Votes
    4 Posts
    8k Views
    S
    Simple example: @QRadioButton *radioButton = new QRadioButton(this); // defined on ui_file.h radioButton->setEnabled(0); radioButton->setChecked(1); // or 0 as you like@
  • QLocalSocket on Unix

    6
    0 Votes
    6 Posts
    4k Views
    D
    http://www.thomasstover.com/uds.html (devnet seems to include the ',' in the link).
  • How to install VS2008 and VS2010 versions side by side

    2
    0 Votes
    2 Posts
    4k Views
    G
    To install both versions, give one or both of them a different installation directory (the default is C:\Qt\4.8.0). There is no difference regarding functionality. There are technical reasons (ABI and name mangling, for example) that make libraries compiled for one version of Visual Studio incompatible for another version (this holds true for all versions). There are some dirty tricks to make it work, but it's highly recommended to use libs built against the respective MSVS versions.
  • 0 Votes
    7 Posts
    5k Views
    G
    Sorry, I misread the default value. You're right of course. I personally would read in the XML in one pass and store the contents in a lightweight internal format, eg. with some classes/structs containing the pieces. These can be passed around more easily, put into lists, hashes etc. Regarding debug runs: make sure you completely rebuild your application and to link against a matching set of Qt and system libraries. Especially Windows is known to cause unexpected crashes when mixing debug and release code and libs.