Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.5k Posts
  • Where are the widget objects placed?

    4
    0 Votes
    4 Posts
    3k Views
    A
    Indeed. The widget object names end up in the header file that you include in the header file for the class implementation. It is, as SimonL mentioned, named ui_<Name Of .ui File>.h, but it only exists after building. It is educational to have a look at it once.
  • About QtService don't start on Mac OS X 10.6

    3
    0 Votes
    3 Posts
    4k Views
    Y
    I test on virtual machine, it works well. Thanks
  • Reinvent the wheel? Alternative view for text editing

    2
    0 Votes
    2 Posts
    3k Views
    F
    Maybe you would like a view at the okteta source code. It's KDE's hex editor and pretty complete.
  • Debugging symbols : Profiling on Windows

    2
    0 Votes
    2 Posts
    3k Views
    G
    I know no free profiler for windows that works really good. If the profiler you use uses microsoft format, you have no chance, as mingw uses a different format for debugging stuff.
  • QProcess messaging and hidden?

    7
    0 Votes
    7 Posts
    5k Views
    M
    Jim: Thanks for the suggestion. I have seen this before and from the looks of it the widgets are still being drawn to the 2D screen as an overlay to the 3D engine, maybe I am wrong here? Ultimately however I need pixel access to the app in question. Lukas: Thanks, I am aware of winId() however I need to get that from a QProcess which gives me the process handle as opposed to the window handle. As Gerolf suggests I will most likely need to branch platform specific code at this point which is ok; was hoping to avoid it if possible however. Thanks. -=ben
  • TextStream special characters

    2
    0 Votes
    2 Posts
    3k Views
    F
    Set the proper encodings for incoming and outgoing files. Have a look at "QTextStream::setCodec()":http://doc.trolltech.com/latest/qtextstream.html#setCodec.
  • Using custom XmlContentHandler for reading QDomDocument

    3
    0 Votes
    3 Posts
    2k Views
    L
    domtest.pro: @ TEMPLATE = app TARGET = DEPENDPATH += . INCLUDEPATH += . QT += xml Input SOURCES += domtest.cpp @ simple.xml (but you can use any valid xml): @ <h1 a="123" b="345"> <h2 c="testing"> </h2> </h1> @
  • [SOLVED] Wait on Timer

    17
    0 Votes
    17 Posts
    15k Views
    A
    That would be a way to implement this, yes. And it is not as complicated as it sounds :-)
  • 0 Votes
    4 Posts
    3k Views
    V
    Thank you, @HuXiKa! I guess the VALUES clause is necessary only when dealing with multiple values?
  • QTest::mouseClick and QCheckBox

    10
    0 Votes
    10 Posts
    12k Views
    D
    Another consequence of this is that QMouseClick does not seem to trigger the checkbox if its orientation is set RightToLeft (i.e. if you want the label to be before the box rather than after it.) Certainly, in my code this seems to be the case. I had to specify the location of the click to be 3/4 of the way across the check box's rectangle in order for it to "hit" the actual check part of the box.
  • 0 Votes
    5 Posts
    12k Views
    K
    Yes, I agree that my answer was a little premature. Sorry for that.
  • QPrinter and raw data

    4
    0 Votes
    4 Posts
    4k Views
    D
    [quote author="unclewerner" date="1302892799"]I don't know exactly, depends a lot on your system. Some ideas: QLockSocket or QFile/QIoDevice to talk directly to your spool, QProcess calling "enscript" and "lpr". What system are you using?[/quote] hm QIoDevice to spool sounds like what I want if its portable for now I have a non-portable solution.
  • How to disable qmake addition of -DUNICODE compiler flag

    5
    0 Votes
    5 Posts
    15k Views
    F
    Much cleaner indeed. This does mean you have to add it to every project though (or have a .pri file where you store such settings if they're common).
  • Crashing application due to key event

    3
    0 Votes
    3 Posts
    2k Views
    M
    I was up to now only on MacPorts' or on KMyMoney's mailing lists and thought that it might be the next logical step to go here, but thanks for the hint to bugreports.qt.nokia.com. I'll pursue the latter. Thanks!
  • How to display a tree by using Qt

    5
    0 Votes
    5 Posts
    5k Views
    J
    Um.. well.. it depends on what you have already. If you have the parent/child relationship in a datastructure (a C++ tree).. and your own algorithm to spread them out in a way it looks good.. then you can just use QPainter's drawPoint() and drawLine() or a QPainterPath. But if you need a framework which you can use to automagically generate the points visually for the tree.. I don't think Qt provides it.
  • Trouble understanding custom QEvents

    5
    0 Votes
    5 Posts
    3k Views
    J
    Thank you all for helping me to understand a little better!
  • 0 Votes
    2 Posts
    2k Views
    J
    Ya.. I don't like Eclipse much either ;) ... and your problem sounds fresh and interesting! Never worked in such a setup.. You're best off reporting a bug leaving this to the professionals.. I cannot find a related bug with a normal search.. "Bug Portal":http://bugreports.qt.nokia.com/
  • ODBC works on Windows not on MAC

    6
    0 Votes
    6 Posts
    4k Views
    I
    The error is! [iODBC][Driver Manager]dlopen(/usr/local/lib/libmyodbc5.so, 6): no suitable image found. Did find: /usr/local/lib/libmyodbc5.so: mach-o, but wrong architecture [iODBC][Driver Manager]Specified driver could not be loaded QODBC3: Unable to connect Edit: I reinstalled the driver and now I can connect, but I can't access my data, I see no errors, but when I try to execute a simple SELECT * FROM Users it doesn't show a thing.. of course I have users in the database.. If I do an UPDATE or a DELETE it works :S! is my driver messed up or something? my connection is working cause I can insert or delete..
  • Unable to Resize Columns [SOLVED]

    6
    0 Votes
    6 Posts
    12k Views
    J
    bq. ahh….. that worked. I originally wanted it to do that from the get go though… guess I could call that function at the right point… That would be the way to go. When some change happens which need a resize of columns do the resize. Connect to the signals which get emitted on a change in the value of a column and do the resize everytime that happens. Could you edit the first post and add [ Solved ] to the title. Cheers :)
  • Use of popup window

    15
    0 Votes
    15 Posts
    30k Views
    G
    yeh i have tried the doc example its working but the thing is that in simulator it show all three button in message box but in device it only show two buttons instead of three..the code i have written is.. @QMessageBox msgBox; QPushButton *connectButton = msgBox.addButton(tr("Ok"), QMessageBox::ActionRole); QPushButton *connectButton1 = msgBox.addButton(tr("AddNotes"), QMessageBox::ActionRole); QPushButton *abortButton = msgBox.addButton(QMessageBox::Abort); msgBox.exec&#40;&#41;; if (msgBox.clickedButton() == connectButton) { // connect } else if (msgBox.clickedButton() == abortButton) { // abort }@