Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.3k Posts
  • Which is best for parsing in Qt???

    9
    0 Votes
    9 Posts
    5k Views
    T
    i have also agreed that qxmlstream* api is faster and occupy less memory. it is helpful in mobile devices where less memory is avilable
  • [SOLVED] How to force QSqlTableModel to use UTF-8 encoding?

    35
    0 Votes
    35 Posts
    26k Views
    S
    I removed uft8_bin from table option tab in MySQL Admin. but each time I insert data using MySQL Query Browser, colliding method is added to all tables of database. I'm going to create re-database with mysql cli. Thank you very much :-) UPDATED: I do everything from beginning, and remove every colliding method. Now everything works fine: !http://s1.picofile.com/file/6846154924/screenshot9.png()! Thanks again.
  • 0 Votes
    12 Posts
    7k Views
    V
    Oh, I just got it. Thanks for your patience!
  • [SOLVED] stylesheet on QTableWidgetItem just edited

    9
    0 Votes
    9 Posts
    7k Views
    E
    I just found a solution : " QAbstractItemView {" "selection-background-color: rgba(0,0,0,0);" It makes the cream background disappear thanks to transparncy. Hope it could help someone. Thnaks for help anyway.
  • Associate

    7
    0 Votes
    7 Posts
    3k Views
    G
    This wiki article describes a class you can use as editor main window class. it enables associating file extension to the exe during first start, like MFC does. It also enables MDI handling do newly opened files are opened in the running process. But this code only works for windows, definitly.
  • Check QVariant type

    4
    0 Votes
    4 Posts
    15k Views
    L
    [quote author="loladiro" date="1308738072"]After reading the sources: @ QVariant(float f) { d.is_null = false; d.type = QMetaType::Float; d.data.f = f; } @ Yes it is! Although you could use int QVariant::userType() if you feel more comfortable comparing to an int.[/quote] Thanks. [quote author="Andre" date="1308739392"]Note that in Qt 5, the distinction between QVariant::Type and QMetaType::Type will most likely go away.[/quote] That's a good news...
  • Infinite loop and signal deluge

    35
    0 Votes
    35 Posts
    21k Views
    J
    No in fact I emit more than once, I just simplified my sample code.
  • [SOLVED]display image through http url

    12
    0 Votes
    12 Posts
    28k Views
    F
    [quote author="TobbY" date="1308721124"]:-) sorry, my mistake[/quote]Qt DevNet: If we point at something, it's bound to be a mistake. :P
  • Crashed at QCoreApplication::sendSpontaneousEvent

    4
    0 Votes
    4 Posts
    5k Views
    F
    @Gerolf Thanks. deleteLater worked :D
  • [Solved] Upgrade help I can't seem to uninstall sdk1.1.1

    3
    0 Votes
    3 Posts
    2k Views
    R
    ok i figured out how to remove correctly, i went into the folder of each sdk and ran the maintainance gui from the command like as sudo seems like since i installed the sdk as sudo, the maintenance gui from the menu is not getting run in sudo mode and therefore hangs i also had to select, 'remove old qtcreator settings' when installing sdk1.1.2, otherwise it was still pointing to the wrong (older) folder for qmake
  • 0 Votes
    12 Posts
    24k Views
    V
    Phew, I (almost) understand now. Thank you.
  • QDateTime::toTime_t () did not return correct result

    3
    0 Votes
    3 Posts
    6k Views
    G
    You'll get the correct result with this QDateTime construction: @ QDateTime testTime(QDate(1970, 1, 1), QTime(0, 0, 0, 0), Qt::UTC); @
  • [Solved] Qt Creator 2.2.1 on Ubuntu 11.04: the GUI is messed up

    12
    0 Votes
    12 Posts
    6k Views
    EddyE
    You're welcome. I typed one "k" to much. but it all stays in the same family ;)
  • Any example of QInputMethodEvent usage?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Build error: where to get info?

    6
    0 Votes
    6 Posts
    3k Views
    Z
    If you declare a function in header & not implemented in source file, that can produce such similar error. you can check the "Compile Output" Tab to see what is needed...
  • Set color of QWidget

    4
    0 Votes
    4 Posts
    23k Views
    L
    You are welcome! Sorry again for my first proposition - I rushed to answer without having read the question carefully :)
  • 0 Votes
    7 Posts
    4k Views
    G
    But that's only needed on windows for MSVC compiler, mingw does it in another way, so I suggest using Q_DECL_EXPORT / Q_DECL_IMPORT. They map to the correct, compiler specific code.
  • [SOLVED] Passing an integer value in QProcess

    5
    0 Votes
    5 Posts
    3k Views
    L
    as Tobias said, use "QString::number":http://doc.qt.nokia.com/4.7/qstring.html#number
  • Where to setup QT creator to locate all Qt include files?

    7
    0 Votes
    7 Posts
    11k Views
    EddyE
    @loladiro Just once ;) Man you're fast!
  • Qt locking QMainWindow when a QDialog is open

    2
    0 Votes
    2 Posts
    4k Views
    F
    Use QWidget::open() for window modal behavior.